aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-01-07 19:07:42 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-07 22:13:07 +0100
commit3dc99a18d4ae2b9bcc96e00b7f589128717aec64 (patch)
tree895f83e64aae6cdea16c72998257634424866042 /libavdevice
parent079688b6cbd2944ab84d3539efcde161aa090fac (diff)
downloadffmpeg-3dc99a18d4ae2b9bcc96e00b7f589128717aec64.tar.gz
cosmetics: drop some pointless parentheses
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/bktr.c2
-rw-r--r--libavdevice/timefilter.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index e6a1e8ba2d..8abe5ef18f 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -292,7 +292,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
if (bktr_init(s1->filename, width, height, s->standard,
- &(s->video_fd), &(s->tuner_fd), -1, 0.0) < 0) {
+ &s->video_fd, &s->tuner_fd, -1, 0.0) < 0) {
ret = AVERROR(EIO);
goto out;
}
diff --git a/libavdevice/timefilter.c b/libavdevice/timefilter.c
index 332d33b5e8..136661a541 100644
--- a/libavdevice/timefilter.c
+++ b/libavdevice/timefilter.c
@@ -69,7 +69,7 @@ double ff_timefilter_update(TimeFilter *self, double system_time, double period)
loop_error = system_time - self->cycle_time;
/// update loop
- self->cycle_time += FFMAX(self->feedback2_factor, 1.0/(self->count)) * loop_error;
+ self->cycle_time += FFMAX(self->feedback2_factor, 1.0 / self->count) * loop_error;
self->clock_period += self->feedback3_factor * loop_error / period;
}
return self->cycle_time;