summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorGiorgio Vazzana <mywing81@gmail.com>2012-10-05 13:37:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-05 18:07:13 +0200
commitdb4bb4c983ad143e6a70c6b844285b3ce343ca27 (patch)
tree672e4b7f8eb3dc2e1f63296125857a567f185e0d /libavformat
parent0ed023275f79d6dd7b1be832da27175f788b8e4d (diff)
downloadffmpeg-streaming-db4bb4c983ad143e6a70c6b844285b3ce343ca27.zip
ffmpeg-streaming-db4bb4c983ad143e6a70c6b844285b3ce343ca27.tar.gz
oggparsetheora: fix comment header parsing
Pass the correct header size to ff_vorbis_comment() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/oggparsetheora.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c
index c8aaa64..6877d1e 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;
OpenPOWER on IntegriCloud