mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
h264: reset last_pocs on IDRs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7056f13a89
commit
18b7f40007
@ -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…
Reference in New Issue
Block a user