From: Mark Nauwelaerts Date: Wed, 10 Jun 2009 11:24:20 +0000 (+0200) Subject: qtmux: compress/optimize stsc writing X-Git-Tag: RELEASE-0.10.29~204 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=579a7edb3ab84c75fe3f03881d8a5de7021d847b;p=platform%2Fupstream%2Fgst-plugins-good.git qtmux: compress/optimize stsc writing --- diff --git a/gst/quicktime/atoms.c b/gst/quicktime/atoms.c index be578f299..d223c1292 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++;