Skip to content
Permalink
Browse files

ffmpeg: make room for intermediate frames

  • Loading branch information
BtbN committed Sep 18, 2016
1 parent 65d5193 commit f6e0941a98de3ea78c817d3788a5c2ca40d6b4be
Showing with 1 addition and 0 deletions.
  1. +1 −0 ffmpeg.c
@@ -3104,6 +3104,7 @@ static int transcode_init(void)
break;
case AVMEDIA_TYPE_VIDEO:
enc_ctx->time_base = av_inv_q(ost->frame_rate);
enc_ctx->time_base.den *= 4;
if (!(enc_ctx->time_base.num && enc_ctx->time_base.den))
enc_ctx->time_base = ost->filter->filter->inputs[0]->time_base;
if ( av_q2d(enc_ctx->time_base) < 0.001 && video_sync_method != VSYNC_PASSTHROUGH

0 comments on commit f6e0941

Please sign in to comment.