Module: libav
Branch: master
Commit: 39403c6c1baf9035d376bf4d7d5b196a6006ce27

Author:    Giorgio Vazzana <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Fri Oct  5 13:37:20 2012 +0200

oggparsetheora: fix comment header parsing

Pass the correct header size to ff_vorbis_comment()

Signed-off-by: Martin Storsjö <[email protected]>

---

 libavformat/oggparsetheora.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c
index dfb73c9..ed31d53 100644
--- a/libavformat/oggparsetheora.c
+++ b/libavformat/oggparsetheora.c
@@ -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;

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to