History

h2645_vui: expose aspect_ratio_info_present_flag

Lynne committed 3 years ago

Commit 317fa3b1 parent dc269452 files · +3 −4Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/h2645_vui.c +2 −4
  2. libavcodec/h2645_vui.h +1 −0
libavcodec/h2645_vui.c+2−4
@@ -36,12 +36,10 @@ · 35 unmodified lines
3636
3737 void ff_h2645_decode_common_vui_params(GetBitContext *gb, H2645VUI *vui, void *logctx)
3838 {
39− int aspect_ratio_info_present_flag;
40−
4139 av_log(logctx, AV_LOG_DEBUG, "Decoding VUI\n");
4240
43− aspect_ratio_info_present_flag = get_bits1(gb);
44− if (aspect_ratio_info_present_flag) {
41+ vui->aspect_ratio_info_present_flag = get_bits1(gb);
42+ if (vui->aspect_ratio_info_present_flag) {
4543 vui->aspect_ratio_idc = get_bits(gb, 8);
4644 if (vui->aspect_ratio_idc < FF_ARRAY_ELEMS(ff_h2645_pixel_aspect))
4745 vui->sar = ff_h2645_pixel_aspect[vui->aspect_ratio_idc];
libavcodec/h2645_vui.h+1−0
@@ -27,6 +27,7 @@ · 26 unmodified lines
2727 typedef struct H2645VUI {
2828 AVRational sar;
2929 int aspect_ratio_idc;
30+ int aspect_ratio_info_present_flag;
3031
3132 int overscan_info_present_flag;
3233 int overscan_appropriate_flag;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t