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:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-02-21 21:13:56 +0400
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2014-02-24 20:10:23 +0400
commit6d18154f61d1e89f208ad3977d2c2d145c72086b (patch)
tree72a876039e2d1b2d9996241239dec7a8abaa6b8b /libavcodec/libx265.c
parent87769d6c8f6d71e4814821f7e6f57b4b65eaf2a7 (diff)
libx265: Use proper error code
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavcodec/libx265.c')
-rw-r--r--libavcodec/libx265.c2
1 files changed, 1 insertions, 1 deletions
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;