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;