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
f7f814ade8
commit
55776eae21
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue