Skip to content

Commit

Permalink
x AVC&HEVC: PAR is unspecified if not indicated
Browse files Browse the repository at this point in the history
Specs: "When aspect_ratio_idc is equal to 0 or sar_width is equal to 0 or sar_height is equal to 0, the sample aspect ratio is unspecified in this Specification"
  • Loading branch information
JeromeMartinez committed Dec 1, 2024
1 parent 2447acc commit 2992482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/MediaInfo/Video/File_Avc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4441,7 +4441,7 @@ void File_Avc::vui_parameters(seq_parameter_set_struct::vui_parameters_struct* &
seq_parameter_set_struct::vui_parameters_struct::xxl *NAL=NULL, *VCL=NULL;
bitset<vui_flags_Max> flags;
int32u num_units_in_tick=0, time_scale=0;
int16u sar_width=1, sar_height=1;
int16u sar_width=0, sar_height=0;
int8u video_format=5, colour_primaries=2, transfer_characteristics=2, matrix_coefficients=2;
bool nal_hrd_parameters_present_flag, vcl_hrd_parameters_present_flag;
TEST_SB_SKIP( "aspect_ratio_info_present_flag");
Expand Down
2 changes: 1 addition & 1 deletion Source/MediaInfo/Video/File_Hevc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4206,7 +4206,7 @@ void File_Hevc::vui_parameters(seq_parameter_set_struct::vui_parameters_struct*
seq_parameter_set_struct::vui_parameters_struct::xxl *NAL = NULL, *VCL = NULL;
vui_flags flags;
int32u num_units_in_tick=0, time_scale=0;
int16u sar_width=1, sar_height=1;
int16u sar_width=0, sar_height=0;
int8u video_format=5, colour_primaries=2, transfer_characteristics=2, matrix_coefficients=2;
bool flag;
TEST_SB_SKIP( "aspect_ratio_info_present_flag");
Expand Down

0 comments on commit 2992482

Please sign in to comment.