[demux/ogg] Fix off-by-one default framerate table indexing
authorDavid Flynn <davidf@rd.bbc.co.uk>
Tue, 29 Jul 2008 17:13:24 +0000 (17:13 +0000)
committerDavid Flynn <davidf@rd.bbc.co.uk>
Tue, 29 Jul 2008 22:29:38 +0000 (22:29 +0000)
Values obtained from the specification/stream are one-indexed.  Add
fake zero index to compensate.

modules/demux/ogg.c

index e3440d5..9b86a25 100644 (file)
@@ -1628,6 +1628,7 @@ static void Ogg_ReadDiracHeader( logical_stream_t *p_stream,
     static const struct {
         uint32_t u_n /* numerator */, u_d /* denominator */;
     } dirac_frate_tbl[] = { /* table 10.3 */
+        {1,1}, /* this first value is never used */
         {24000,1001}, {24,1}, {25,1}, {30000,1001}, {30,1},
         {50,1}, {60000,1001}, {60,1}, {15000,1001}, {25,2},
     };