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>
This commit is contained in:
parent
60039c2d12
commit
d664557023
@ -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;
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user