Commit 18b7f400 authored by Michael Niedermayer's avatar Michael Niedermayer

h264: reset last_pocs on IDRs

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7056f13a
...@@ -2371,11 +2371,14 @@ static void implicit_weight_table(H264Context *h, int field){ ...@@ -2371,11 +2371,14 @@ static void implicit_weight_table(H264Context *h, int field){
* instantaneous decoder refresh. * instantaneous decoder refresh.
*/ */
static void idr(H264Context *h){ static void idr(H264Context *h){
int i;
ff_h264_remove_all_refs(h); ff_h264_remove_all_refs(h);
h->prev_frame_num= 0; h->prev_frame_num= 0;
h->prev_frame_num_offset= 0; h->prev_frame_num_offset= 0;
h->prev_poc_msb= h->prev_poc_msb=
h->prev_poc_lsb= 0; 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 */ /* 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