avcodec/hevc_ps: extract one SPS fields required for hvcC construction
authorAman Gupta <aman@tmm1.net>
Wed, 27 Sep 2017 01:04:12 +0000 (18:04 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 22:47:15 +0000 (23:47 +0100)
Signed-off-by: Aman Gupta <aman@tmm1.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc.h
libavcodec/hevc_ps.c

index d84e661..ab59b5d 100644 (file)
@@ -407,6 +407,7 @@ typedef struct HEVCSPS {
     HEVCWindow pic_conf_win;
 
     int bit_depth;
+    int bit_depth_chroma;
     int pixel_shift;
     enum AVPixelFormat pix_fmt;
 
index 1c9ba06..7522298 100644 (file)
@@ -902,6 +902,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
                sps->bit_depth, bit_depth_chroma);
         return AVERROR_INVALIDDATA;
     }
+    sps->bit_depth_chroma = bit_depth_chroma;
 
     ret = map_pixel_format(avctx, sps);
     if (ret < 0)