Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
- index 3b91237..4a0a316 100644
- --- a/libavcodec/libx265.c
- +++ b/libavcodec/libx265.c
- @@ -99,10 +99,11 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx)
- }
- ctx->params->frameNumThreads = avctx->thread_count;
- - ctx->params->frameRate = (int) (avctx->time_base.den / avctx->time_base.num);
- + ctx->params->fpsNum = (int) avctx->time_base.num;
- + ctx->params->fpsDenom = avctx->time_base.den;
- ctx->params->sourceWidth = avctx->width;
- ctx->params->sourceHeight = avctx->height;
- - ctx->params->inputBitDepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1;
- + ctx->params->internalBitDepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1;
- if (avctx->bit_rate > 0) {
- ctx->params->rc.bitrate = avctx->bit_rate / 1000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement