aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ws-snd1.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-12-01 10:00:16 +0000
committerPaul B Mahol <onemda@gmail.com>2012-12-01 10:17:45 +0000
commite4af8ed8c7e30a56e588ffb80e14a0edaafc9cd2 (patch)
treee8e74536e87dc13e77fea27c803baa5196511d68 /libavcodec/ws-snd1.c
parent679c7578a6673148ca447b395f1e447a62f7bb92 (diff)
downloadffmpeg-e4af8ed8c7e30a56e588ffb80e14a0edaafc9cd2.tar.gz
ws-snd1: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/ws-snd1.c')
-rw-r--r--libavcodec/ws-snd1.c2
1 files changed, 1 insertions, 1 deletions
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 */