aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-04-27 01:33:25 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-04-27 01:33:25 +0200
commit566d64d4fbb2d949bbb8d26b1291ddf6ea58afb9 (patch)
treec068cd317a36aa3ed5fbf5b4fc84ba506c44f5e4 /libavcodec
parent4efd3ec50a5442ac854d84c5ace94052692c10cd (diff)
downloadffmpeg-566d64d4fbb2d949bbb8d26b1291ddf6ea58afb9.tar.gz
avcodec/h264: Only recover from reference pictures
Fixes spec compliance Fixes Ticket5346 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-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;
}