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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user