Commit 39403c6c authored by Giorgio Vazzana's avatar Giorgio Vazzana Committed by Martin Storsjö

oggparsetheora: fix comment header parsing

Pass the correct header size to ff_vorbis_comment()
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent bad446e2
......@@ -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;
......
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