Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-10-10 18:31:12 +0300
committerPaul B Mahol <onemda@gmail.com>2015-10-11 19:40:28 +0300
commitf226c25a3740a280db5e5d27bf438d4a45fc426a (patch)
treea21cf6584f615fab9b9f5df6687e0b164fd5007b /libavcodec/sipr.c
parenta99226133e078d5b27d5f1b29c04535790c8ed5d (diff)
avcodec/sipr: use AVERROR return code instead of -1
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/sipr.c')
-rw-r--r--libavcodec/sipr.c2
1 files changed, 1 insertions, 1 deletions
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 */