[x264-devel] Add some missing values to the non-extended SAR table

Vittorio Giovara git at videolan.org
Wed Jan 26 02:56:56 CET 2011


x264 | branch: master | Vittorio Giovara <vitto.giova at yahoo.it> | Fri Jan 14 10:02:33 2011 -0800| [1a321d783413038999b8e9445c64fb82ddcfeb6d] | committer: Jason Garrett-Glaser

Add some missing values to the non-extended SAR table

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=1a321d783413038999b8e9445c64fb82ddcfeb6d
---

 encoder/set.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/encoder/set.c b/encoder/set.c
index b02772a..ee19574 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++ )
             {



More information about the x264-devel mailing list