h264: reset last_pocs on IDRs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/2/head
Michael Niedermayer 13 years ago
parent 7056f13a89
commit 18b7f40007
  1. 3
      libavcodec/h264.c

@ -2371,11 +2371,14 @@ static void implicit_weight_table(H264Context *h, int field){
* instantaneous decoder refresh.
*/
static void idr(H264Context *h){
int i;
ff_h264_remove_all_refs(h);
h->prev_frame_num= 0;
h->prev_frame_num_offset= 0;
h->prev_poc_msb=
h->prev_poc_lsb= 0;
for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++)
h->last_pocs[i] = INT_MIN;
}
/* forget old pics after a seek */

Loading…
Cancel
Save