[FFmpeg-cvslog] mov: annotate read values in tmcd track.

Clément Bœsch git at videolan.org
Thu Jan 5 21:00:23 CET 2012


ffmpeg | branch: master | Clément Bœsch <clement.boesch at smartjog.com> | Wed Dec 28 10:38:19 2011 +0100| [adc278788bf14b59c7a1c8ced1a00348cbe2ded9] | committer: Clément Bœsch

mov: annotate read values in tmcd track.

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

 libavformat/mov.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 9db6aba..5923fb7 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1372,9 +1372,9 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
                 val = avio_rb32(pb); /* flags */
                 if (val & 1)
                     st->codec->flags2 |= CODEC_FLAG2_DROP_FRAME_TIMECODE;
-                avio_rb32(pb);
-                avio_rb32(pb);
-                st->codec->time_base.den = avio_r8(pb);
+                avio_rb32(pb); /* time scale */
+                avio_rb32(pb); /* frame duration */
+                st->codec->time_base.den = avio_r8(pb); /* number of frame */
                 st->codec->time_base.num = 1;
             }
             /* other codec type, just skip (rtp, mp4s, ...) */



More information about the ffmpeg-cvslog mailing list