[FFmpeg-devel] [PATCH 2/3] mov: annotate read values in tmcd track.

Clément Bœsch ubitux at gmail.com
Mon Jan 2 17:23:22 CET 2012


From: Clément Bœsch <clement.boesch at smartjog.com>

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 923fbdb..ee67a9f 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, ...) */
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list