[FFmpeg-cvslog] libx265: Use proper error code

Derek Buitenhuis git at videolan.org
Mon Feb 24 17:11:26 CET 2014


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Fri Feb 21 12:13:56 2014 -0500| [6d18154f61d1e89f208ad3977d2c2d145c72086b] | committer: Derek Buitenhuis

libx265: Use proper error code

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6d18154f61d1e89f208ad3977d2c2d145c72086b
---

 libavcodec/libx265.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index 2a5ae06..2370601 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;



More information about the ffmpeg-cvslog mailing list