aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-11-29 11:10:31 +0100
committerAnton Khirnov <anton@khirnov.net>2011-11-30 07:47:43 +0100
commit7bb3e6259492c9923881f906be88b0c2eb5e071e (patch)
treea74751d1ab7a7151fedf8ad4666f6f64c21078ae /avconv.c
parentc98c1f434eed06390f4990dd23f7ec15dbe53703 (diff)
downloadffmpeg-7bb3e6259492c9923881f906be88b0c2eb5e071e.tar.gz
avconv: make copy_tb on by default.
I.e. on streamcopy set output codec timebase from input stream timebase (as opposed to input codec timebase). This should be more sane, because since the stream is not decoded, the input codec tb has no relation to the timestamps of the copied packets.
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/avconv.c b/avconv.c
index ab0d4eca20..d6045b7ef4 100644
--- a/avconv.c
+++ b/avconv.c
@@ -113,7 +113,7 @@ static int video_sync_method= -1;
static int audio_sync_method= 0;
static float audio_drift_threshold= 0.1;
static int copy_ts= 0;
-static int copy_tb;
+static int copy_tb = 1;
static int opt_shortest = 0;
static char *vstats_filename;
static FILE *vstats_file;
@@ -2067,9 +2067,7 @@ static int transcode_init(OutputFile *output_files,
}
memcpy(codec->extradata, icodec->extradata, icodec->extradata_size);
codec->extradata_size = icodec->extradata_size;
- if (!copy_tb &&
- av_q2d(icodec->time_base)*icodec->ticks_per_frame > av_q2d(ist->st->time_base) &&
- av_q2d(ist->st->time_base) < 1.0/500) {
+ if (!copy_tb) {
codec->time_base = icodec->time_base;
codec->time_base.num *= icodec->ticks_per_frame;
av_reduce(&codec->time_base.num, &codec->time_base.den,