]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/vqf.c
avisynth: Use RTLD_LOCAL instead of RTLD_GLOBAL
[ffmpeg] / libavformat / vqf.c
index 162c7530d1bd0e10ffd78629481fec15d7122f2c..a43829b855db1a070d96ccfb07ade2e310a7a39f 100644 (file)
@@ -182,6 +182,13 @@ static int vqf_read_header(AVFormatContext *s)
         break;
     }
 
+    if (read_bitrate / st->codec->channels <  8 ||
+        read_bitrate / st->codec->channels > 48) {
+        av_log(s, AV_LOG_ERROR, "Invalid bitrate per channel %d\n",
+               read_bitrate / st->codec->channels);
+        return AVERROR_INVALIDDATA;
+    }
+
     switch (((st->codec->sample_rate/1000) << 8) +
             read_bitrate/st->codec->channels) {
     case (11<<8) + 8 :