aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-09 19:13:54 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-09 19:13:54 +0200
commitf3ae90621e03e2d91201e4f863c6d5b61555cadd (patch)
treee5df48a24b401b0fde5d1f0cd51e1d7cf932a8dc
parentc4dabc38a3a221dde64e1dddb66a7eee6ec4039f (diff)
parent277103e07fbe22fc8e4361bacd5c6b48133f3ba5 (diff)
downloadffmpeg-f3ae90621e03e2d91201e4f863c6d5b61555cadd.tar.gz
Merge commit '277103e07fbe22fc8e4361bacd5c6b48133f3ba5' into release/0.10
* commit '277103e07fbe22fc8e4361bacd5c6b48133f3ba5': video4linux2: Avoid a floating point exception Conflicts: avconv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 2d2d081fd4..b1fc15800e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -4696,7 +4696,8 @@ static int opt_target(OptionsContext *o, const char *opt, const char *arg)
for (j = 0; j < nb_input_files; j++) {
for (i = 0; i < input_files[j].nb_streams; i++) {
AVCodecContext *c = input_files[j].ctx->streams[i]->codec;
- if (c->codec_type != AVMEDIA_TYPE_VIDEO)
+ if (c->codec_type != AVMEDIA_TYPE_VIDEO ||
+ !c->time_base.num)
continue;
fr = c->time_base.den * 1000 / c->time_base.num;
if (fr == 25000) {