ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Tue 
Jul 28 13:27:16 2015 +0200| [c3fdf536f6c07ca229dcc74aebcbdf0764618406] | 
committer: Michael Niedermayer

avcodec/h264_slice: Also check sei_recovery_frame_cnt for skip_frame nokey

Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3fdf536f6c07ca229dcc74aebcbdf0764618406
---

 libavcodec/h264_slice.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 3da7f01..9a8319b 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1217,7 +1217,7 @@ int ff_h264_decode_slice_header(H264Context *h, 
H264SliceContext *sl)
             (h->avctx->skip_frame >= AVDISCARD_NONREF && !h->nal_ref_idc) ||
             (h->avctx->skip_frame >= AVDISCARD_BIDIR  && sl->slice_type_nos == 
AV_PICTURE_TYPE_B) ||
             (h->avctx->skip_frame >= AVDISCARD_NONINTRA && sl->slice_type_nos 
!= AV_PICTURE_TYPE_I) ||
-            (h->avctx->skip_frame >= AVDISCARD_NONKEY && h->nal_unit_type != 
NAL_IDR_SLICE) ||
+            (h->avctx->skip_frame >= AVDISCARD_NONKEY && h->nal_unit_type != 
NAL_IDR_SLICE && h->sei_recovery_frame_cnt < 0) ||
             h->avctx->skip_frame >= AVDISCARD_ALL) {
             return SLICE_SKIPED;
         }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to