summaryrefslogtreecommitdiffstats
path: root/libavcodec/proresenc_anatoliy.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-04 12:49:59 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-04 12:49:59 +0200
commite0fd319784f6f5267442f53e74dad79771aaa5da (patch)
treeb46cdb32d038248ae3e9b2a203763e624f4d3cbf /libavcodec/proresenc_anatoliy.c
parent4cb7cd4c84146770ccb925b7a95138f750bbdbd7 (diff)
downloadffmpeg-streaming-e0fd319784f6f5267442f53e74dad79771aaa5da.zip
ffmpeg-streaming-e0fd319784f6f5267442f53e74dad79771aaa5da.tar.gz
avcodec/proresenc_anatoliy: Use more specific error codes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/proresenc_anatoliy.c')
-rw-r--r--libavcodec/proresenc_anatoliy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c
index 25ffbc0..48eb44e 100644
--- a/libavcodec/proresenc_anatoliy.c
+++ b/libavcodec/proresenc_anatoliy.c
@@ -542,14 +542,14 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
if (avctx->pix_fmt != AV_PIX_FMT_YUV422P10) {
av_log(avctx, AV_LOG_ERROR, "need YUV422P10\n");
- return -1;
+ return AVERROR_PATCHWELCOME;
}
avctx->bits_per_raw_sample = 10;
if (avctx->width & 0x1) {
av_log(avctx, AV_LOG_ERROR,
"frame width needs to be multiple of 2\n");
- return -1;
+ return AVERROR(EINVAL);
}
if (avctx->width > 65534 || avctx->height > 65535) {
@@ -578,7 +578,7 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
AV_LOG_ERROR,
"unknown profile %d, use [0 - apco, 1 - apcs, 2 - apcn (default), 3 - apch]\n",
avctx->profile);
- return -1;
+ return AVERROR(EINVAL);
}
ff_fdctdsp_init(&ctx->fdsp, avctx);
OpenPOWER on IntegriCloud