]> git.sesse.net Git - ffmpeg/commitdiff
lavc/h264_slice: use sps directly when checking for invalid 8x8 inference
authorClément Bœsch <u@pkh.me>
Sat, 2 Jul 2016 17:22:34 +0000 (19:22 +0200)
committerClément Bœsch <u@pkh.me>
Sun, 3 Jul 2016 13:11:40 +0000 (15:11 +0200)
libavcodec/h264_slice.c

index ca492ba6aba5ef62055fadea34d6111290b94c80..22916f1a5055e25ea10df33956b4e57e12510a52 100644 (file)
@@ -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;
         }