aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-09-26 18:04:12 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2018-07-08 13:07:06 +0200
commit55776eae21164f5f34652bf8a9299650ba01ebc8 (patch)
tree97e046b9272fdfdb6221276d174c59855cea5fae /libavcodec
parentf7f814ade8c262f476b5b7eca9cea8829d25ef28 (diff)
downloadffmpeg-55776eae21164f5f34652bf8a9299650ba01ebc8.tar.gz
avcodec/hevc_ps: extract one SPS fields required for hvcC construction
Signed-off-by: Aman Gupta <aman@tmm1.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/hevc.h1
-rw-r--r--libavcodec/hevc_ps.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index 2afad011b7..a0be1bfa1c 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -411,6 +411,7 @@ typedef struct HEVCSPS {
HEVCWindow pic_conf_win;
int bit_depth;
+ int bit_depth_chroma;
int pixel_shift;
enum AVPixelFormat pix_fmt;
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 95d976ff08..8a38dde038 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -933,6 +933,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)