OSDN Git Service

Reset prev_frame_num for idr frames as required by the spec.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Jul 2008 00:45:18 +0000 (00:45 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Jul 2008 00:45:18 +0000 (00:45 +0000)
Originally committed as revision 14354 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index 2bf0cc1..2ddce41 100644 (file)
@@ -3303,6 +3303,7 @@ static void idr(H264Context *h){
         h->short_ref[i]= NULL;
     }
     h->short_ref_count=0;
+    h->prev_frame_num= 0;
 }
 
 /* forget old pics after a seek */