summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-07-22 19:30:45 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-07-22 19:30:45 +0000
commite44e48372ba8d3eac2ec0340cc2a883aa9786a59 (patch)
tree148dffea427ec38901212f4250975ac146ea5d74 /libavcodec/h264.c
parent2e916cb392d6f8cebf7d733976369c3f5828b4f1 (diff)
Reset frame_num for MMCO 5.
Fixes at least MR2_TANDBERG_E.264 Originally committed as revision 14338 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index a2e161d12e..0236eb422f 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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);
}