w64dec: fix skipping of unknown guids
authorPaul B Mahol <onemda@gmail.com>
Mon, 2 Sep 2013 22:50:00 +0000 (22:50 +0000)
committerPaul B Mahol <onemda@gmail.com>
Mon, 2 Sep 2013 22:55:46 +0000 (22:55 +0000)
Regression since 14d50c1.
Fixes #2932.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/wavdec.c

index d5b3b9e..0dee7f3 100644 (file)
@@ -700,7 +700,7 @@ static int w64_read_header(AVFormatContext *s)
             avio_skip(pb, end - avio_tell(pb));
         } else {
             av_log(s, AV_LOG_DEBUG, "unknown guid: "FF_PRI_GUID"\n", FF_ARG_GUID(guid));
-            avio_skip(pb, size - 24);
+            avio_skip(pb, FFALIGN(size, INT64_C(8)) - 24);
         }
     }