summaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc_ps.c
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-09-26 18:04:12 -0700
committerAman Gupta <aman@tmm1.net>2017-09-28 16:47:46 -0700
commitc32077c0ee1bcc8e00f5a9a151d540adac33ea8c (patch)
tree7900d6c8cc36af728b17bc1453c5dbc0ac08df2b /libavcodec/hevc_ps.c
parent0351b8e358f697b79b3bdcd97ee90015635c8188 (diff)
downloadffmpeg-streaming-c32077c0ee1bcc8e00f5a9a151d540adac33ea8c.zip
ffmpeg-streaming-c32077c0ee1bcc8e00f5a9a151d540adac33ea8c.tar.gz
avcodec/hevc_ps: extract 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/hevc_ps.c')
-rw-r--r--libavcodec/hevc_ps.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 500fee0..902917d 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -893,7 +893,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
return AVERROR_INVALIDDATA;
}
- skip_bits1(gb); // temporal_id_nesting_flag
+ sps->temporal_id_nesting_flag = get_bits(gb, 1);
if ((ret = parse_ptl(gb, avctx, &sps->ptl, sps->max_sub_layers)) < 0)
return ret;
@@ -956,6 +956,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)
OpenPOWER on IntegriCloud