From 6d18154f61d1e89f208ad3977d2c2d145c72086b Mon Sep 17 00:00:00 2001 From: Derek Buitenhuis Date: Fri, 21 Feb 2014 12:13:56 -0500 Subject: [PATCH] libx265: Use proper error code Signed-off-by: Derek Buitenhuis --- libavcodec/libx265.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 2a5ae06dc6..2370601ed7 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -235,7 +235,7 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt, ret = x265_encoder_encode(ctx->encoder, &nal, &nnal, pic ? &x265pic : NULL, &x265pic_out); if (ret < 0) - return AVERROR_UNKNOWN; + return AVERROR_EXTERNAL; if (!nnal) return 0; -- 2.11.0