[FFmpeg-cvslog] ws-snd1: return meaningful error code

Paul B Mahol git at videolan.org
Sat Dec 1 11:28:33 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Dec  1 10:00:16 2012 +0000| [e4af8ed8c7e30a56e588ffb80e14a0edaafc9cd2] | committer: Paul B Mahol

ws-snd1: return meaningful error code

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e4af8ed8c7e30a56e588ffb80e14a0edaafc9cd2
---

 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 0f23a6d..7cc0678 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 */



More information about the ffmpeg-cvslog mailing list