Commit a149c1a5 authored by Michael Niedermayer's avatar Michael Niedermayer

Reset prev_frame_num for idr frames as required by the spec.

Originally committed as revision 14354 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b4cf2228
...@@ -3303,6 +3303,7 @@ static void idr(H264Context *h){ ...@@ -3303,6 +3303,7 @@ static void idr(H264Context *h){
h->short_ref[i]= NULL; h->short_ref[i]= NULL;
} }
h->short_ref_count=0; h->short_ref_count=0;
h->prev_frame_num= 0;
} }
/* forget old pics after a seek */ /* forget old pics after a seek */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment