OSDN Git Service

libx265: Use proper error code
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Fri, 21 Feb 2014 17:13:56 +0000 (12:13 -0500)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 24 Feb 2014 16:10:23 +0000 (11:10 -0500)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/libx265.c

index 2a5ae06..2370601 100644 (file)
@@ -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;