diff --git a/gst/quicktime/atoms.c b/gst/quicktime/atoms.c index be578f2993..d223c1292c 100644 --- a/gst/quicktime/atoms.c +++ b/gst/quicktime/atoms.c @@ -2245,6 +2245,10 @@ stsc_entry_new (guint32 first_chunk, guint32 samples, guint32 desc_index) static void atom_stsc_add_new_entry (AtomSTSC * stsc, guint32 first_chunk, guint32 nsamples) { + if (stsc->entries && + ((STSCEntry *) stsc->entries->data)->samples_per_chunk == nsamples) + return; + stsc->entries = g_list_prepend (stsc->entries, stsc_entry_new (first_chunk, nsamples, 1)); stsc->n_entries++;