qtmux: Un-merge the last two stsc entries after serializing
authorSebastian Dröge <sebastian@centricular.com>
Thu, 15 Jun 2017 08:50:44 +0000 (11:50 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 15 Jun 2017 08:50:44 +0000 (11:50 +0300)
commitdeb9c62cd9643f252dfa54c0a041d3b4e8e3ca07
tree17ea3969c29375df89e08cec7bb29b74e30b8840
parenta82e38d6074305cd85268476cdc50b7cdedbe9c9
qtmux: Un-merge the last two stsc entries after serializing

The last entry will most likely get new samples added to it in "robust"
muxing mode, changing the samples_per_chunk and thus making it wrong to
keep the last two entries merged. It will run into an assertion later
when adding a new sample to the chunk.

Thanks to gdiener@cardinalpeak.com for the analysis of the bug and
proposal for a solution.
gst/isomp4/atoms.c