Commit db4bb4c9 authored by Giorgio Vazzana's avatar Giorgio Vazzana Committed by Michael Niedermayer

oggparsetheora: fix comment header parsing

Pass the correct header size to ff_vorbis_comment()
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0ed02327
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment