mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
qtmux: compress/optimize stsc writing
This commit is contained in:
parent
7c9a6093d8
commit
579a7edb3a
1 changed files with 4 additions and 0 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue