Browse Source

libx265: Use proper error code

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
tags/n2.2-rc1
Derek Buitenhuis 11 years ago
parent
commit
6d18154f61
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libx265.c

+ 1
- 1
libavcodec/libx265.c View 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;


Loading…
Cancel
Save