int i;
static const struct { uint8_t w, h, sar; } sar[] =
{
- { 1, 1, 1 }, { 12, 11, 2 }, { 10, 11, 3 }, { 16, 11, 4 },
+ // aspect_ratio_idc = 0 -> unspecified
+ { 1, 1, 1 }, { 12, 11, 2 }, { 10, 11, 3 }, { 16, 11, 4 },
{ 40, 33, 5 }, { 24, 11, 6 }, { 20, 11, 7 }, { 32, 11, 8 },
{ 80, 33, 9 }, { 18, 11, 10}, { 15, 11, 11}, { 64, 33, 12},
- { 160,99, 13}, { 0, 0, 255 }
+ {160, 99, 13}, { 4, 3, 14}, { 3, 2, 15}, { 2, 1, 16},
+ // aspect_ratio_idc = [17..254] -> reserved
+ { 0, 0, 255 }
};
for( i = 0; sar[i].sar != 255; i++ )
{