h264: reset last_pocs on IDRs

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-16 23:57:17 +01:00
parent 7056f13a89
commit 18b7f40007

View File

@ -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 */