summaryrefslogtreecommitdiff
path: root/libavformat/avisynth.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-30 00:56:33 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-30 00:56:33 +0200
commit7d1918affee4bc70fb8ac139ba9235e7fed2979b (patch)
treeb8c1beadf98aceeee6a155ae83bfc110656ca595 /libavformat/avisynth.c
parent316f6df9cc5a70c5b117793c9f167c4ce629c1e0 (diff)
parent41f43202cf7648522b4ce0ed7bbb326655dbb9bc (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: flvdec: remove spurious use of stream id lavf: deprecate r_frame_rate. lavf: round estimated average fps to a "standard" fps. Conflicts: ffmpeg.c ffprobe.c libavformat/avformat.h libavformat/electronicarts.c libavformat/flvdec.c libavformat/rawdec.c libavformat/utils.c tests/ref/fate/iv8-demux Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avisynth.c')
-rw-r--r--libavformat/avisynth.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c
index edde77843b..dcfaa27033 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;