ws-snd1: return meaningful error code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2012-12-01 10:00:16 +00:00
parent 679c7578a6
commit e4af8ed8c7

View File

@ -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 */