[vlc-devel] commit: [demux/ogg] Fix off-by-one default framerate table indexing ( David Flynn )

git version control git at videolan.org
Fri Aug 1 00:39:19 CEST 2008


vlc | branch: master | David Flynn <davidf at rd.bbc.co.uk> | Tue Jul 29 17:13:24 2008 +0000| [2d5e77b87a6c84847385d2375d41eff4e768c336]

[demux/ogg] Fix off-by-one default framerate table indexing

Values obtained from the specification/stream are one-indexed.  Add
fake zero index to compensate.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d5e77b87a6c84847385d2375d41eff4e768c336
---

 modules/demux/ogg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index e3440d5..9b86a25 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -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},
     };




More information about the vlc-devel mailing list