Reset frame_num for MMCO 5.
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Jul 2008 19:30:45 +0000 (19:30 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 22 Jul 2008 19:30:45 +0000 (19:30 +0000)
Fixes at least
MR2_TANDBERG_E.264

Originally committed as revision 14338 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index a2e161d..0236eb4 100644 (file)
@@ -3539,6 +3539,7 @@ static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
                 pic= remove_long(h, j);
                 if(pic) unreference_pic(h, pic, 0);
             }
+            s->current_picture_ptr->frame_num= 0;
             break;
         default: assert(0);
         }