X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Favisynth.c;h=dcfaa27033e131e04e8e0a867d64e83593c32fad;hb=a4163b2d6583396845e06b1b976c3a981eb8cb1c;hp=edde77843bf1b6e03fe88a09f05e70f97d4ce1ad;hpb=fbe02459dc4f3c8f4d758c1a90ed8e35a800f3b9;p=ffmpeg diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index edde77843bf..dcfaa27033e 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -120,8 +120,11 @@ static int avisynth_read_header(AVFormatContext *s) st = avformat_new_stream(s, NULL); st->id = id; st->codec->codec_type = AVMEDIA_TYPE_VIDEO; - st->r_frame_rate.num = stream->info.dwRate; - st->r_frame_rate.den = stream->info.dwScale; + st->avg_frame_rate.num = stream->info.dwRate; + st->avg_frame_rate.den = stream->info.dwScale; +#if FF_API_R_FRAME_RATE + st->r_frame_rate = st->avg_frame_rate; +#endif st->codec->width = imgfmt.bmiHeader.biWidth; st->codec->height = imgfmt.bmiHeader.biHeight;