qtmux: The sample size we have to reserve is 256+8 bytes for the header for CDP packets

This commit is contained in:
Sebastian Dröge 2018-08-02 13:40:09 +03:00
parent 8a3075fbae
commit 7a354d0507

View file

@ -2500,8 +2500,9 @@ prefill_get_sample_size (GstQTMux * qtmux, GstQTPad * qpad)
/* We always write both cdat and cdt2 atom in prefill mode */ /* We always write both cdat and cdt2 atom in prefill mode */
return 20; return 20;
case FOURCC_c708: case FOURCC_c708:
/* We're cheating a bit by always allocating 256 bytes even if we use less */ /* We're cheating a bit by always allocating 256 bytes plus 8 bytes for the atom header
return 256; * even if we use less */
return 256 + 8;
case FOURCC_sowt: case FOURCC_sowt:
case FOURCC_twos:{ case FOURCC_twos:{
guint64 block_idx; guint64 block_idx;