aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-12 12:57:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-12 12:57:22 +0200
commit8274b21c0935596c75fd2d6754bf90cc32e3e803 (patch)
treee5265847bdfdcf5d4a72460f03650034ad6974fd
parente8c63981e582433b0f436ccf1ded59bc0cdd26b2 (diff)
downloadffmpeg-8274b21c0935596c75fd2d6754bf90cc32e3e803.tar.gz
ffmpeg: fix ticks_per_frame for the avi stream copy case
Should not make any difference, but its more correct. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 80135ace3b..093d7cc9fc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2562,6 +2562,7 @@ static int transcode_init(OutputFile *output_files, int nb_output_files,
codec->time_base = icodec->time_base;
codec->time_base.num *= icodec->ticks_per_frame;
codec->time_base.den *= 2;
+ codec->ticks_per_frame = 2;
}
} else if(!(oc->oformat->flags & AVFMT_VARIABLE_FPS)
&& strcmp(oc->oformat->name, "mov") && strcmp(oc->oformat->name, "mp4") && strcmp(oc->oformat->name, "3gp")