Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2014
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
  2. index 3b91237..4a0a316 100644
  3. --- a/libavcodec/libx265.c
  4. +++ b/libavcodec/libx265.c
  5. @@ -99,10 +99,11 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx)
  6. }
  7.  
  8. ctx->params->frameNumThreads = avctx->thread_count;
  9. - ctx->params->frameRate = (int) (avctx->time_base.den / avctx->time_base.num);
  10. + ctx->params->fpsNum = (int) avctx->time_base.num;
  11. + ctx->params->fpsDenom = avctx->time_base.den;
  12. ctx->params->sourceWidth = avctx->width;
  13. ctx->params->sourceHeight = avctx->height;
  14. - ctx->params->inputBitDepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1;
  15. + ctx->params->internalBitDepth = av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1;
  16.  
  17. if (avctx->bit_rate > 0) {
  18. ctx->params->rc.bitrate = avctx->bit_rate / 1000;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement