summaryrefslogtreecommitdiff
path: root/gst/isomp4/atoms.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/isomp4/atoms.c')
-rw-r--r--gst/isomp4/atoms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/isomp4/atoms.c b/gst/isomp4/atoms.c
index fa40947c2..01d07c895 100644
--- a/gst/isomp4/atoms.c
+++ b/gst/isomp4/atoms.c
@@ -4104,7 +4104,7 @@ atom_trak_set_timecode_type (AtomTRAK * trak, AtomsContext * context,
SampleTableEntry *
atom_trak_set_caption_type (AtomTRAK * trak, AtomsContext * context,
- guint32 caption_type)
+ guint32 trak_timescale, guint32 caption_type)
{
SampleTableEntry *ste;
AtomGMHD *gmhd = trak->mdia.minf.gmhd;
@@ -4115,7 +4115,7 @@ atom_trak_set_caption_type (AtomTRAK * trak, AtomsContext * context,
}
/* FIXME : Set the timescale to the same timescale as the video trak ! */
- trak->mdia.mdhd.time_info.timescale = 30000;
+ trak->mdia.mdhd.time_info.timescale = trak_timescale;
trak->mdia.hdlr.component_type = FOURCC_mhlr;
trak->mdia.hdlr.handler_type = FOURCC_clcp;
g_free (trak->mdia.hdlr.name);