[FFmpeg-cvslog] avcodec/sipr: use AVERROR return code instead of -1

Paul B Mahol git at videolan.org
Sun Oct 11 18:40:52 CEST 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Oct 10 17:31:12 2015 +0200| [f226c25a3740a280db5e5d27bf438d4a45fc426a] | committer: Paul B Mahol

avcodec/sipr: use AVERROR return code instead of -1

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

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

 libavcodec/sipr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sipr.c b/libavcodec/sipr.c
index 4602a42..595097a 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 */



More information about the ffmpeg-cvslog mailing list