aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 22375aa2db..a85953ed46 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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;
}