]> git.videolan.org Git - x264.git/commitdiff
Add some missing values to the non-extended SAR table
authorVittorio Giovara <vitto.giova@yahoo.it>
Fri, 14 Jan 2011 18:02:33 +0000 (10:02 -0800)
committerJason Garrett-Glaser <jason@x264.com>
Tue, 25 Jan 2011 20:16:26 +0000 (12:16 -0800)
encoder/set.c

index b02772a0f92facb87bf85c2df09cad8c95db57b7..ee19574b4435a4ed5a2ee077a8614d748ad0cc16 100644 (file)
@@ -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++ )
             {