Assert that long_ref has been cleared for released pics.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Jul 2008 11:54:03 +0000 (11:54 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 25 Jul 2008 11:54:03 +0000 (11:54 +0000)
Originally committed as revision 14385 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index eef34db..368ce35 100644 (file)
@@ -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;
 }