Commit d10102d2 authored by Anton Khirnov's avatar Anton Khirnov

avconv: set the encoding framerate when the output is CFR

parent 5bf2454e
...@@ -1978,6 +1978,8 @@ static int init_output_stream_encode(OutputStream *ost) ...@@ -1978,6 +1978,8 @@ static int init_output_stream_encode(OutputStream *ost)
ost->filter->filter->inputs[0]->sample_aspect_ratio; ost->filter->filter->inputs[0]->sample_aspect_ratio;
enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format; enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format;
enc_ctx->framerate = ost->frame_rate;
ost->st->avg_frame_rate = ost->frame_rate; ost->st->avg_frame_rate = ost->frame_rate;
if (dec_ctx && if (dec_ctx &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment