]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggparseogm.c
riff: add "GXVE" FourCC for WMV2
[ffmpeg] / libavformat / oggparseogm.c
index 56ea5575f2b12195863a1325a51b5b31ffce99e1..23136257bf1c13420bb5847c9cf4b60564653027 100644 (file)
@@ -75,6 +75,11 @@ ogm_header(AVFormatContext *s, int idx)
 
         time_unit   = bytestream2_get_le64(&p);
         spu         = bytestream2_get_le64(&p);
+        if (!time_unit || !spu) {
+            av_log(s, AV_LOG_ERROR, "Invalid timing values.\n");
+            return AVERROR_INVALIDDATA;
+        }
+
         bytestream2_skip(&p, 4);    /* default_len */
         bytestream2_skip(&p, 8);    /* buffersize + bits_per_sample */