X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Favisynth.c;h=dcfaa27033e131e04e8e0a867d64e83593c32fad;hb=fe40dc1cecdf152ffacff6df1d9c5f0c7daced85;hp=edde77843bf1b6e03fe88a09f05e70f97d4ce1ad;hpb=e847f4128543432a77fb8f85c313646a406c76f6;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;