Commit e4af8ed8 authored by Paul B Mahol's avatar Paul B Mahol

ws-snd1: return meaningful error code

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 679c7578
...@@ -84,7 +84,7 @@ static int ws_snd_decode_frame(AVCodecContext *avctx, void *data, ...@@ -84,7 +84,7 @@ static int ws_snd_decode_frame(AVCodecContext *avctx, void *data,
if (in_size > buf_size) { if (in_size > buf_size) {
av_log(avctx, AV_LOG_ERROR, "Frame data is larger than input buffer\n"); av_log(avctx, AV_LOG_ERROR, "Frame data is larger than input buffer\n");
return -1; return AVERROR_INVALIDDATA;
} }
/* get output buffer */ /* get output buffer */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment