summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-07-24 00:45:18 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-07-24 00:45:18 +0000
commita149c1a59f057b40f1a28f2d1ebe710b368d7ccb (patch)
tree214e2333d8203f3fa2f4ccf5ab1ade057324370f /libavcodec/h264.c
parentb4cf2228700dc34379d85f3261aac16fbc287142 (diff)
Reset prev_frame_num for idr frames as required by the spec.
Originally committed as revision 14354 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 2bf0cc1a64..2ddce416af 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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 */