Browse Source

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

Clément Bœsch 8 years ago
parent
commit
64c619369b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libavcodec/h264_slice.c

+ 1 - 1
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;
         }