summaryrefslogtreecommitdiff
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-06-03 13:29:43 +0200
committerAnton Khirnov <anton@khirnov.net>2011-06-04 19:48:08 +0200
commita3b15e411d9624a37919e91fe81aec9c98457ed8 (patch)
tree122016b796068330c05f5eff2d72ca599aada592 /libavdevice/v4l2.c
parent1572484f62c59da6755fbcebf09821ada8c43728 (diff)
fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 0cd4f38389..98ff82ec0d 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -546,6 +546,8 @@ static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap)
return AVERROR(errno);
}
}
+ s1->streams[0]->codec->time_base.den = tpf->denominator;
+ s1->streams[0]->codec->time_base.num = tpf->numerator;
return 0;
}
@@ -679,8 +681,6 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap)
st->codec->codec_id = codec_id;
st->codec->width = s->width;
st->codec->height = s->height;
- st->codec->time_base.den = ap->time_base.den;
- st->codec->time_base.num = ap->time_base.num;
st->codec->bit_rate = s->frame_size * 1/av_q2d(st->codec->time_base) * 8;
out: