]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/adpcm.c
avcodec/tests/rangecoder: initialize array to avoid valgrind warning
[ffmpeg] / libavcodec / adpcm.c
index cd3bbd33c2e44536e8cc2b6ef8fcf43056400e9d..aa9c7c5c4f8f50664fa55265c7780494ef94c4de 100644 (file)
@@ -1679,7 +1679,7 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data,
         break;
 
     default:
-        return -1;
+        av_assert0(0); // unsupported codec_id should not happen
     }
 
     if (avpkt->size && bytestream2_tell(&gb) == 0) {