Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
ffmpeg: make room for intermediate frames
- Loading branch information
Showing
with
1 addition
and
0 deletions.
-
+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 |
|
|
|