|
|
@ -2962,10 +2962,12 @@ static int decode_slice_header(H264Context *h, H264Context *h0) |
|
|
|
|
|
|
|
|
|
|
|
if (h->slice_type_nos != AV_PICTURE_TYPE_I) { |
|
|
|
if (h->slice_type_nos != AV_PICTURE_TYPE_I) { |
|
|
|
s->last_picture_ptr = &h->ref_list[0][0]; |
|
|
|
s->last_picture_ptr = &h->ref_list[0][0]; |
|
|
|
|
|
|
|
s->last_picture_ptr->owner2 = s; |
|
|
|
ff_copy_picture(&s->last_picture, s->last_picture_ptr); |
|
|
|
ff_copy_picture(&s->last_picture, s->last_picture_ptr); |
|
|
|
} |
|
|
|
} |
|
|
|
if (h->slice_type_nos == AV_PICTURE_TYPE_B) { |
|
|
|
if (h->slice_type_nos == AV_PICTURE_TYPE_B) { |
|
|
|
s->next_picture_ptr = &h->ref_list[1][0]; |
|
|
|
s->next_picture_ptr = &h->ref_list[1][0]; |
|
|
|
|
|
|
|
s->next_picture_ptr->owner2 = s; |
|
|
|
ff_copy_picture(&s->next_picture, s->next_picture_ptr); |
|
|
|
ff_copy_picture(&s->next_picture, s->next_picture_ptr); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|