qtmux: The sample size we have to reserve is 256+8 bytes for the header for CDP packets
authorSebastian Dröge <sebastian@centricular.com>
Thu, 2 Aug 2018 10:40:09 +0000 (13:40 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 2 Aug 2018 10:40:09 +0000 (13:40 +0300)
gst/isomp4/gstqtmux.c

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