oggparsetheora: fix comment header parsing
authorGiorgio Vazzana <mywing81@gmail.com>
Fri, 5 Oct 2012 11:37:20 +0000 (13:37 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 14 Jan 2013 18:47:27 +0000 (20:47 +0200)
Pass the correct header size to ff_vorbis_comment()

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/oggparsetheora.c

index dfb73c9..ed31d53 100644 (file)
@@ -114,7 +114,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;