From 5118c6c771b64afac7018b0dfaf55c022bb2ad47 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 25 Jul 2008 11:54:03 +0000 Subject: [PATCH] Assert that long_ref has been cleared for released pics. Originally committed as revision 14385 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index eef34db..368ce35 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -2268,6 +2268,7 @@ static int frame_start(H264Context *h){ s->current_picture_ptr->field_poc[0]= s->current_picture_ptr->field_poc[1]= INT_MAX; + assert(s->current_picture_ptr->long_ref==0); return 0; } -- 2.7.4