mov: annotate read values in tmcd track.
authorClément Bœsch <clement.boesch@smartjog.com>
Wed, 28 Dec 2011 09:38:19 +0000 (10:38 +0100)
committerClément Bœsch <ubitux@gmail.com>
Thu, 5 Jan 2012 19:59:52 +0000 (20:59 +0100)
libavformat/mov.c

index 9db6aba..5923fb7 100644 (file)
@@ -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, ...) */