diff options
author | Aman Gupta <aman@tmm1.net> | 2017-09-26 18:04:12 -0700 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-02-19 02:40:54 +0100 |
commit | d664557023040422ba3b43f7051bb932bee79973 (patch) | |
tree | 8fec6db2172a3dbb31784f19a49b9484f5aa45c1 | |
parent | 60039c2d125f5766279b51b387bcfcc007eb11b9 (diff) | |
download | ffmpeg-d664557023040422ba3b43f7051bb932bee79973.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>
-rw-r--r-- | libavcodec/hevc.h | 1 | ||||
-rw-r--r-- | libavcodec/hevc_ps.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h index 77f3db8889..0d410bdd86 100644 --- a/libavcodec/hevc.h +++ b/libavcodec/hevc.h @@ -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; diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 2383d18b21..863ab523eb 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -906,6 +906,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) |