mirror of https://git.ffmpeg.org/ffmpeg.git
hevc_ps: expose vui_present flag
This commit is contained in:
parent
f58db8e534
commit
32fcb17e42
|
@ -855,7 +855,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
|
||||||
{
|
{
|
||||||
HEVCWindow *ow;
|
HEVCWindow *ow;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int bit_depth_chroma, start, vui_present, sublayer_ordering_info, num_comps;
|
int bit_depth_chroma, start, sublayer_ordering_info, num_comps;
|
||||||
int i, j;
|
int i, j;
|
||||||
|
|
||||||
// Coded parameters
|
// Coded parameters
|
||||||
|
@ -1082,8 +1082,8 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
|
||||||
sps->sps_temporal_mvp_enabled_flag = get_bits1(gb);
|
sps->sps_temporal_mvp_enabled_flag = get_bits1(gb);
|
||||||
sps->sps_strong_intra_smoothing_enable_flag = get_bits1(gb);
|
sps->sps_strong_intra_smoothing_enable_flag = get_bits1(gb);
|
||||||
sps->vui.common.sar = (AVRational){0, 1};
|
sps->vui.common.sar = (AVRational){0, 1};
|
||||||
vui_present = get_bits1(gb);
|
sps->vui_present = get_bits1(gb);
|
||||||
if (vui_present)
|
if (sps->vui_present)
|
||||||
decode_vui(gb, avctx, apply_defdispwin, sps);
|
decode_vui(gb, avctx, apply_defdispwin, sps);
|
||||||
|
|
||||||
if (get_bits1(gb)) { // sps_extension_flag
|
if (get_bits1(gb)) { // sps_extension_flag
|
||||||
|
|
|
@ -211,6 +211,7 @@ typedef struct HEVCSPS {
|
||||||
} temporal_layer[HEVC_MAX_SUB_LAYERS];
|
} temporal_layer[HEVC_MAX_SUB_LAYERS];
|
||||||
uint8_t temporal_id_nesting_flag;
|
uint8_t temporal_id_nesting_flag;
|
||||||
|
|
||||||
|
int vui_present;
|
||||||
VUI vui;
|
VUI vui;
|
||||||
PTL ptl;
|
PTL ptl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue