summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-06-04 01:33:30 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-04 02:10:10 +0200
commit958bf659d84dfa098185ab7b6384014c7b473b5a (patch)
tree7dc01f7b989f53ddc2f68c1ed0a9b5ef81daa012 /libavdevice
parentb28e102875af250cd2086e58316e3f3984bd5009 (diff)
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: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/lavfi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index a52d4730e5..f9b2694650 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -319,7 +319,6 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
if (link->type == AVMEDIA_TYPE_VIDEO) {
st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
st->codecpar->format = link->format;
- st->avg_frame_rate = av_inv_q(link->time_base);
st->codecpar->width = link->w;
st->codecpar->height = link->h;
st ->sample_aspect_ratio =
@@ -333,7 +332,6 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx)
st->codecpar->channels = avfilter_link_get_channels(link);
st->codecpar->format = link->format;
st->codecpar->sample_rate = link->sample_rate;
- st->avg_frame_rate = av_inv_q(link->time_base);
st->codecpar->channel_layout = link->channel_layout;
if (st->codecpar->codec_id == AV_CODEC_ID_NONE)
av_log(avctx, AV_LOG_ERROR,