]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avisynth.c
oggdec: simplify start time calculation code.
[ffmpeg] / libavformat / avisynth.c
index edde77843bf1b6e03fe88a09f05e70f97d4ce1ad..dcfaa27033e131e04e8e0a867d64e83593c32fad 100644 (file)
@@ -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;