From: Vittorio Giovara Date: Fri, 14 Jan 2011 18:02:33 +0000 (-0800) Subject: Add some missing values to the non-extended SAR table X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=1a321d783413038999b8e9445c64fb82ddcfeb6d;p=x264.git Add some missing values to the non-extended SAR table --- diff --git a/encoder/set.c b/encoder/set.c index b02772a0..ee19574b 100644 --- a/encoder/set.c +++ b/encoder/set.c @@ -334,10 +334,13 @@ void x264_sps_write( bs_t *s, x264_sps_t *sps ) 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++ ) {