[FFmpeg-cvslog] ffmpeg: fix ticks_per_frame for the avi stream copy case

Michael Niedermayer git at videolan.org
Thu Apr 12 13:11:12 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Apr 12 12:57:22 2012 +0200| [8274b21c0935596c75fd2d6754bf90cc32e3e803] | committer: Michael Niedermayer

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 at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8274b21c0935596c75fd2d6754bf90cc32e3e803
---

 ffmpeg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 80135ac..093d7cc 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")



More information about the ffmpeg-cvslog mailing list