mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
ffmpeg: assert the refcount of decoded frames
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
22a6a23a45
commit
2ea5f866e6
1
ffmpeg.c
1
ffmpeg.c
@ -2614,6 +2614,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
|
|||||||
fb->buf->priv = buf;
|
fb->buf->priv = buf;
|
||||||
fb->buf->free = filter_release_buffer;
|
fb->buf->free = filter_release_buffer;
|
||||||
|
|
||||||
|
av_assert0(buf->refcount>0);
|
||||||
buf->refcount++;
|
buf->refcount++;
|
||||||
av_buffersrc_buffer(ist->filters[i]->filter, fb);
|
av_buffersrc_buffer(ist->filters[i]->filter, fb);
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user