From: Paul B Mahol Date: Sat, 10 Oct 2015 15:31:12 +0000 (+0200) Subject: avcodec/sipr: use AVERROR return code instead of -1 X-Git-Tag: android-x86-7.1-r1~8616 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f226c25a3740a280db5e5d27bf438d4a45fc426a;p=android-x86%2Fexternal-ffmpeg.git avcodec/sipr: use AVERROR return code instead of -1 Signed-off-by: Paul B Mahol --- diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c index 4602a42484..595097a6b4 100644 --- a/libavcodec/sipr.c +++ b/libavcodec/sipr.c @@ -537,7 +537,7 @@ static int sipr_decode_frame(AVCodecContext *avctx, void *data, av_log(avctx, AV_LOG_ERROR, "Error processing packet: packet size (%d) too small\n", avpkt->size); - return -1; + return AVERROR_INVALIDDATA; } /* get output buffer */