ws-snd1: return meaningful error code
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
679c7578a6
commit
e4af8ed8c7
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user