bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.6k stars 8.14k forks source link

视频播放问题 #4011

Open G1King opened 6 years ago

G1King commented 6 years ago

static void buffer_replace(AVBufferRef dst, AVBufferRef src) { AVBuffer *b;

b = (*dst)->buffer;

if (src) {
    **dst = **src;
    av_freep(src);
} else
    av_freep(dst);

if (atomic_fetch_add_explicit(&b->refcount, -1, memory_order_acq_rel) == 1) {
    b->free(b->opaque, b->data);
    av_freep(&b);
}

} 播放视频 崩溃在b = (*dst)->buffer; 这个地方。。

wqq198906 commented 4 years ago

楼主 你解决了吗