]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/cavsdec.c
mips: add assembler flags for mips32r2 ISA and mhard-float
[ffmpeg] / libavcodec / cavsdec.c
index 2131cd447f0a6874cc3127ce5f8f81a93b0c3113..099599ae510b59f4511de854ba700a4c4d59fb68 100644 (file)
@@ -625,6 +625,10 @@ static int decode_seq_header(AVSContext *h) {
         av_log_missing_feature(s, "Width/height changing in CAVS is", 0);
         return -1;
     }
+    if (width <= 0 || height <= 0) {
+        av_log(s, AV_LOG_ERROR, "Dimensions invalid\n");
+        return AVERROR_INVALIDDATA;
+    }
     s->width  = width;
     s->height = height;
     skip_bits(&s->gb,2); //chroma format