mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
qtmux: compress/optimize stsc writing
This commit is contained in:
parent
1aeb7d9b54
commit
d4b5c6ae5b
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