mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
h2645_vui: expose aspect_ratio_info_present_flag
This commit is contained in:
parent
dc2694557d
commit
317fa3bd1d
@ -36,12 +36,10 @@
|
|||||||
|
|
||||||
void ff_h2645_decode_common_vui_params(GetBitContext *gb, H2645VUI *vui, void *logctx)
|
void ff_h2645_decode_common_vui_params(GetBitContext *gb, H2645VUI *vui, void *logctx)
|
||||||
{
|
{
|
||||||
int aspect_ratio_info_present_flag;
|
|
||||||
|
|
||||||
av_log(logctx, AV_LOG_DEBUG, "Decoding VUI\n");
|
av_log(logctx, AV_LOG_DEBUG, "Decoding VUI\n");
|
||||||
|
|
||||||
aspect_ratio_info_present_flag = get_bits1(gb);
|
vui->aspect_ratio_info_present_flag = get_bits1(gb);
|
||||||
if (aspect_ratio_info_present_flag) {
|
if (vui->aspect_ratio_info_present_flag) {
|
||||||
vui->aspect_ratio_idc = get_bits(gb, 8);
|
vui->aspect_ratio_idc = get_bits(gb, 8);
|
||||||
if (vui->aspect_ratio_idc < FF_ARRAY_ELEMS(ff_h2645_pixel_aspect))
|
if (vui->aspect_ratio_idc < FF_ARRAY_ELEMS(ff_h2645_pixel_aspect))
|
||||||
vui->sar = ff_h2645_pixel_aspect[vui->aspect_ratio_idc];
|
vui->sar = ff_h2645_pixel_aspect[vui->aspect_ratio_idc];
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
typedef struct H2645VUI {
|
typedef struct H2645VUI {
|
||||||
AVRational sar;
|
AVRational sar;
|
||||||
int aspect_ratio_idc;
|
int aspect_ratio_idc;
|
||||||
|
int aspect_ratio_info_present_flag;
|
||||||
|
|
||||||
int overscan_info_present_flag;
|
int overscan_info_present_flag;
|
||||||
int overscan_appropriate_flag;
|
int overscan_appropriate_flag;
|
||||||
|
Loading…
Reference in New Issue
Block a user