[FFmpeg-cvslog] lavc/h264_slice: use sps directly when checking for invalid 8x8 inference

Clément Bœsch git at videolan.org
Sun Jul 3 15:32:39 CEST 2016


ffmpeg | branch: master | Clément Bœsch <u at pkh.me> | Sat Jul  2 19:22:34 2016 +0200| [64c619369b3caba0e32b5deed5d1cda7726bc089] | committer: Clément Bœsch

lavc/h264_slice: use sps directly when checking for invalid 8x8 inference

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

 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 ca492ba..22916f1 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1466,7 +1466,7 @@ static int h264_slice_header_parse(H264Context *h, H264SliceContext *sl)
     if (sps->frame_mbs_only_flag) {
         picture_structure = PICT_FRAME;
     } else {
-        if (!h->ps.sps->direct_8x8_inference_flag && slice_type == AV_PICTURE_TYPE_B) {
+        if (!sps->direct_8x8_inference_flag && slice_type == AV_PICTURE_TYPE_B) {
             av_log(h->avctx, AV_LOG_ERROR, "This stream was generated by a broken encoder, invalid 8x8 inference\n");
             return -1;
         }



More information about the ffmpeg-cvslog mailing list