Commit 566d64d4 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264: Only recover from reference pictures

Fixes spec compliance
Fixes Ticket5346
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4efd3ec5
......@@ -1472,7 +1472,7 @@ again:
(h->nal_unit_type == NAL_IDR_SLICE);
if (h->nal_unit_type == NAL_IDR_SLICE ||
h->recovery_frame == h->frame_num) {
(h->recovery_frame == h->frame_num && h->nal_ref_idc)) {
h->recovery_frame = -1;
h->cur_pic_ptr->recovered = 1;
}
......
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