]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/adx.c
cabac: Mark ff_h264_mps_state array as static, it is only used within cabac.c.
[ffmpeg] / libavcodec / adx.c
index aa90fd89c3dfba9f4c1cfd8f84f54ee4d62d5900..1e5d89c991ad40bac44acb65d05065663c8d994c 100644 (file)
@@ -58,7 +58,7 @@ int avpriv_adx_decode_header(AVCodecContext *avctx, const uint8_t *buf,
 
     /* channels */
     avctx->channels = buf[7];
-    if (avctx->channels > 2)
+    if (avctx->channels <= 0 || avctx->channels > 2)
         return AVERROR_INVALIDDATA;
 
     /* sample rate */