From: Kostya Shishkov <[email protected]>

CC:[email protected]
Bug-id: 500
Signed-off-by: Luca Barbato <[email protected]>
---
 libavformat/wavdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index c9f7abb..84f6ce5 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -242,7 +242,7 @@ static int wav_read_header(AVFormatContext *s)
 
     for (;;) {
         size = next_tag(pb, &tag);
-        next_tag_ofs = avio_tell(pb) + size;
+        next_tag_ofs = avio_tell(pb) + size + (size & 1);
 
         if (pb->eof_reached)
             break;
-- 
1.8.1.5

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

Reply via email to