]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpegaudiodec_template.c
configure: Suppress "potentially uninitialized variable" warnings from MSVC
[ffmpeg] / libavcodec / mpegaudiodec_template.c
index 9ce03efcc874c4c269254a63cfc9bd0de604c1e3..e9c785027765fa9af2814332ed1e87ea3f642ccf 100644 (file)
@@ -1803,7 +1803,7 @@ static av_cold int decode_init_mp3on4(AVCodecContext * avctx)
     MPEG4AudioConfig cfg;
     int i;
 
-    if ((avctx->extradata_size < 2) || (avctx->extradata == NULL)) {
+    if ((avctx->extradata_size < 2) || !avctx->extradata) {
         av_log(avctx, AV_LOG_ERROR, "Codec extradata missing or too short.\n");
         return AVERROR_INVALIDDATA;
     }