mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libx265: Use proper error code
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
87769d6c8f
commit
6d18154f61
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user