# HG changeset patch # User conrad # Date 1268371011 0 # Node ID d75025af2e7b888236e5b6b86d9b773c3bff6a5d # Parent 4a67f1418e4cf2d49ecf1680f5b14ed5a9e3b1a5 oggdec: Read ogm metadata diff -r 4a67f1418e4c -r d75025af2e7b oggparseogm.c --- a/oggparseogm.c Fri Mar 12 05:16:47 2010 +0000 +++ b/oggparseogm.c Fri Mar 12 05:16:51 2010 +0000 @@ -43,8 +43,7 @@ if(!(*p & 1)) return 0; - if(*p != 1) - return 1; + if(*p == 1) { p++; @@ -93,6 +92,10 @@ st->time_base.num = 1; st->time_base.den = st->codec->sample_rate; } + } else if (*p == 3) { + if (os->psize > 8) + ff_vorbis_comment(s, &st->metadata, p+7, os->psize-8); + } return 1; }