From a149c1a59f057b40f1a28f2d1ebe710b368d7ccb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 24 Jul 2008 00:45:18 +0000 Subject: [PATCH] Reset prev_frame_num for idr frames as required by the spec. Originally committed as revision 14354 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 2bf0cc1..2ddce41 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 */ -- 2.7.4