diff --git a/ffmpeg.c b/ffmpeg.c index 10311ef495..f3e1a7589f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2673,6 +2673,8 @@ static int transcode_init(void) av_get_pix_fmt_name(ost->filter->filter->inputs[0]->format)); enc_ctx->pix_fmt = ost->filter->filter->inputs[0]->format; + ost->st->avg_frame_rate = ost->frame_rate; + if (!dec_ctx || enc_ctx->width != dec_ctx->width || enc_ctx->height != dec_ctx->height || diff --git a/tests/ref/lavf/wtv b/tests/ref/lavf/wtv index dd55af7287..b0ae7d1dbb 100644 --- a/tests/ref/lavf/wtv +++ b/tests/ref/lavf/wtv @@ -1,3 +1,3 @@ -fc6436e36e32a2c5c01f3e31df1c2cd1 *./tests/data/lavf/lavf.wtv +b74b14ee41830aed90380bf6252dcfdb *./tests/data/lavf/lavf.wtv 413696 ./tests/data/lavf/lavf.wtv ./tests/data/lavf/lavf.wtv CRC=0x71287e25