oggparsetheora: fix comment header parsing
authorGiorgio Vazzana <mywing81@gmail.com>
Fri, 5 Oct 2012 11:37:20 +0000 (13:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Oct 2012 16:07:13 +0000 (18:07 +0200)
Pass the correct header size to ff_vorbis_comment()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparsetheora.c

index c8aaa64..6877d1e 100644 (file)
@@ -113,7 +113,7 @@ theora_header (AVFormatContext * s, int idx)
     }
     break;
     case 0x81:
-        ff_vorbis_comment(s, &st->metadata, os->buf + os->pstart + 7, os->psize - 8);
+        ff_vorbis_comment(s, &st->metadata, os->buf + os->pstart + 7, os->psize - 7);
     case 0x82:
         if (!thp->version)
             return -1;