From: Michael Niedermayer Date: Thu, 24 Jul 2008 00:45:18 +0000 (+0000) Subject: Reset prev_frame_num for idr frames as required by the spec. X-Git-Tag: v0.5~3546 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a149c1a59f057b40f1a28f2d1ebe710b368d7ccb;p=coroid%2Flibav_saccubus.git Reset prev_frame_num for idr frames as required by the spec. Originally committed as revision 14354 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 2bf0cc1a6..2ddce416a 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 */