Browse Source

ffmpeg: remove common factors from copied timebase

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
9098f0ecd7
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      ffmpeg.c

+ 2
- 1
ffmpeg.c View File

@@ -2879,7 +2879,8 @@ static int transcode_init(void)
}
ost->st->codec->codec= ost->enc_ctx->codec;

ost->st->time_base = ost->enc_ctx->time_base;
// copy timebase while removing common factors
ost->st->time_base = av_add_q(ost->enc_ctx->time_base, (AVRational){0});
}

/* init input streams */


Loading…
Cancel
Save