From e4af8ed8c7e30a56e588ffb80e14a0edaafc9cd2 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 1 Dec 2012 10:00:16 +0000 Subject: [PATCH] ws-snd1: return meaningful error code Signed-off-by: Paul B Mahol --- libavcodec/ws-snd1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ws-snd1.c b/libavcodec/ws-snd1.c index 0f23a6d2b5..7cc0678466 100644 --- a/libavcodec/ws-snd1.c +++ b/libavcodec/ws-snd1.c @@ -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 */