avconv: set the encoding framerate when the output is CFR

This commit is contained in:
Anton Khirnov 2016-10-01 11:47:23 +02:00
parent 5bf2454e7c
commit d10102d23c
1 changed files with 2 additions and 0 deletions

View File

@ -1978,6 +1978,8 @@ static int init_output_stream_encode(OutputStream *ost)
ost->filter->filter->inputs[0]->sample_aspect_ratio;
enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format;
enc_ctx->framerate = ost->frame_rate;
ost->st->avg_frame_rate = ost->frame_rate;
if (dec_ctx &&