diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-30 00:56:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-30 00:56:33 +0200 |
commit | 7d1918affee4bc70fb8ac139ba9235e7fed2979b (patch) | |
tree | b8c1beadf98aceeee6a155ae83bfc110656ca595 /libavformat/avisynth.c | |
parent | 316f6df9cc5a70c5b117793c9f167c4ce629c1e0 (diff) | |
parent | 41f43202cf7648522b4ce0ed7bbb326655dbb9bc (diff) | |
download | ffmpeg-7d1918affee4bc70fb8ac139ba9235e7fed2979b.tar.gz |
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.c | 7 |
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; |