Commit 958bf659 authored by Michael Niedermayer's avatar Michael Niedermayer

avdevice/lavfi: Do not set avg_frame_rate to the timebase

Fixes regression
Fixes Ticket5422 (The timebase is 1/25k but the fps are not 25k)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b28e1028
...@@ -319,7 +319,6 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) ...@@ -319,7 +319,6 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
if (link->type == AVMEDIA_TYPE_VIDEO) { if (link->type == AVMEDIA_TYPE_VIDEO) {
st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
st->codecpar->format = link->format; st->codecpar->format = link->format;
st->avg_frame_rate = av_inv_q(link->time_base);
st->codecpar->width = link->w; st->codecpar->width = link->w;
st->codecpar->height = link->h; st->codecpar->height = link->h;
st ->sample_aspect_ratio = st ->sample_aspect_ratio =
...@@ -333,7 +332,6 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx) ...@@ -333,7 +332,6 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
st->codecpar->channels = avfilter_link_get_channels(link); st->codecpar->channels = avfilter_link_get_channels(link);
st->codecpar->format = link->format; st->codecpar->format = link->format;
st->codecpar->sample_rate = link->sample_rate; st->codecpar->sample_rate = link->sample_rate;
st->avg_frame_rate = av_inv_q(link->time_base);
st->codecpar->channel_layout = link->channel_layout; st->codecpar->channel_layout = link->channel_layout;
if (st->codecpar->codec_id == AV_CODEC_ID_NONE) if (st->codecpar->codec_id == AV_CODEC_ID_NONE)
av_log(avctx, AV_LOG_ERROR, av_log(avctx, AV_LOG_ERROR,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment