From db4bb4c983ad143e6a70c6b844285b3ce343ca27 Mon Sep 17 00:00:00 2001 From: Giorgio Vazzana Date: Fri, 5 Oct 2012 13:37:20 +0200 Subject: [PATCH] oggparsetheora: fix comment header parsing Pass the correct header size to ff_vorbis_comment() Signed-off-by: Michael Niedermayer --- libavformat/oggparsetheora.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c index c8aaa64da7..6877d1e06c 100644 --- a/libavformat/oggparsetheora.c +++ b/libavformat/oggparsetheora.c @@ -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;