libx265: Use proper error code

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
pull/56/merge
Derek Buitenhuis 11 years ago
parent 87769d6c8f
commit 6d18154f61
  1. 2
      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;

Loading…
Cancel
Save