OSDN Git Service

ffmpeg: assert the refcount of decoded frames
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Apr 2012 18:10:00 +0000 (20:10 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Apr 2012 18:10:00 +0000 (20:10 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index ab1b7e8..d22378f 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2614,6 +2614,7 @@ static int transcode_video(InputStream *ist, AVPacket *pkt, int *got_output, int
             fb->buf->priv           = buf;
             fb->buf->free           = filter_release_buffer;
 
+            av_assert0(buf->refcount>0);
             buf->refcount++;
             av_buffersrc_buffer(ist->filters[i]->filter, fb);
         } else