diff options
author | Lynne <dev@lynne.ee> | 2022-12-14 00:03:44 +0100 |
---|---|---|
committer | Lynne <dev@lynne.ee> | 2023-05-29 00:41:28 +0200 |
commit | 317fa3bd1dc50268110bc95f16f09edae22d1eaa (patch) | |
tree | 398daa7094c8967a81c6acfd72d37bb387d6baf0 /libavcodec | |
parent | dc2694557d41d0ff276d8da268e35bea39e42602 (diff) | |
download | ffmpeg-317fa3bd1dc50268110bc95f16f09edae22d1eaa.tar.gz |
h2645_vui: expose aspect_ratio_info_present_flag
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h2645_vui.c | 6 | ||||
-rw-r--r-- | libavcodec/h2645_vui.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/h2645_vui.c b/libavcodec/h2645_vui.c index 93e83a9e1f..e5c7bf46f9 100644 --- a/libavcodec/h2645_vui.c +++ b/libavcodec/h2645_vui.c @@ -36,12 +36,10 @@ 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"); - aspect_ratio_info_present_flag = get_bits1(gb); - if (aspect_ratio_info_present_flag) { + vui->aspect_ratio_info_present_flag = get_bits1(gb); + if (vui->aspect_ratio_info_present_flag) { vui->aspect_ratio_idc = get_bits(gb, 8); if (vui->aspect_ratio_idc < FF_ARRAY_ELEMS(ff_h2645_pixel_aspect)) vui->sar = ff_h2645_pixel_aspect[vui->aspect_ratio_idc]; diff --git a/libavcodec/h2645_vui.h b/libavcodec/h2645_vui.h index f1aeab7758..2c839f4b01 100644 --- a/libavcodec/h2645_vui.h +++ b/libavcodec/h2645_vui.h @@ -27,6 +27,7 @@ typedef struct H2645VUI { AVRational sar; int aspect_ratio_idc; + int aspect_ratio_info_present_flag; int overscan_info_present_flag; int overscan_appropriate_flag; |