aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-02 16:11:17 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-11 12:49:22 -0500
commit65d15aec77254ef46c8972c50ce4b4a12e0c4de9 (patch)
tree3849fc5c9620b61c501041c2014ecf80c25d83bf
parent302daf580027c7151668395ff3ec706c92d2ccc6 (diff)
downloadffmpeg-65d15aec77254ef46c8972c50ce4b4a12e0c4de9.tar.gz
alacenc: return AVERROR codes in alac_encode_frame()
-rw-r--r--libavcodec/alacenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index bd8ab35e37..7bc5a19491 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -527,7 +527,7 @@ static int alac_encode_frame(AVCodecContext *avctx, uint8_t *frame,
if (buf_size < 2 * max_frame_size) {
av_log(avctx, AV_LOG_ERROR, "buffer size is too small\n");
- return -1;
+ return AVERROR(EINVAL);
}
verbatim:
@@ -555,7 +555,7 @@ verbatim:
if (verbatim_flag || s->compression_level == 0) {
/* still too large. must be an error. */
av_log(avctx, AV_LOG_ERROR, "error encoding frame\n");
- return -1;
+ return AVERROR_BUG;
}
verbatim_flag = 1;
goto verbatim;