]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ws-snd1.c
ws-snd1: return meaningful error code
[ffmpeg] / libavcodec / ws-snd1.c
index 0f23a6d2b52b3f6459adf935319df21528f25453..7cc06784663f554e2ae3a69327b0821f4a1fd25f 100644 (file)
@@ -84,7 +84,7 @@ static int ws_snd_decode_frame(AVCodecContext *avctx, void *data,
 
     if (in_size > buf_size) {
         av_log(avctx, AV_LOG_ERROR, "Frame data is larger than input buffer\n");
-        return -1;
+        return AVERROR_INVALIDDATA;
     }
 
     /* get output buffer */