mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
hevc_ps: expose conformance_window_flag
This commit is contained in:
parent
cc5fab5c48
commit
8b2d46ee3d
@ -904,7 +904,8 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
|
|||||||
sps->height, 0, avctx)) < 0)
|
sps->height, 0, avctx)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (get_bits1(gb)) { // pic_conformance_flag
|
sps->conformance_window_flag = get_bits1(gb);
|
||||||
|
if (sps->conformance_window_flag) {
|
||||||
int vert_mult = hevc_sub_height_c[sps->chroma_format_idc];
|
int vert_mult = hevc_sub_height_c[sps->chroma_format_idc];
|
||||||
int horiz_mult = hevc_sub_width_c[sps->chroma_format_idc];
|
int horiz_mult = hevc_sub_width_c[sps->chroma_format_idc];
|
||||||
sps->pic_conf_win.left_offset = get_ue_golomb_long(gb) * horiz_mult;
|
sps->pic_conf_win.left_offset = get_ue_golomb_long(gb) * horiz_mult;
|
||||||
|
@ -191,6 +191,7 @@ typedef struct HEVCSPS {
|
|||||||
|
|
||||||
HEVCWindow output_window;
|
HEVCWindow output_window;
|
||||||
|
|
||||||
|
uint8_t conformance_window_flag;
|
||||||
HEVCWindow pic_conf_win;
|
HEVCWindow pic_conf_win;
|
||||||
|
|
||||||
HEVCHdrParams hdr;
|
HEVCHdrParams hdr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user