You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/h264: Only recover from reference pictures
Fixes spec compliance Fixes Ticket5346 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -1472,7 +1472,7 @@ again:
|
|||||||
(h->nal_unit_type == NAL_IDR_SLICE);
|
(h->nal_unit_type == NAL_IDR_SLICE);
|
||||||
|
|
||||||
if (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->recovery_frame = -1;
|
||||||
h->cur_pic_ptr->recovered = 1;
|
h->cur_pic_ptr->recovered = 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user