qtmux: Properly allocate 256 bytes per CDP packet in prefill mode
authorSebastian Dröge <sebastian@centricular.com>
Thu, 2 Aug 2018 09:27:45 +0000 (12:27 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 2 Aug 2018 09:27:45 +0000 (12:27 +0300)
Instead of allowing 256 but only pre-allocating 100.

gst/isomp4/gstqtmux.c

index 9bf645a..6e45351 100644 (file)
@@ -2500,8 +2500,8 @@ 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 100bytes even if we use less  */
-      return 100;
+      /* We're cheating a bit by always allocating 256 bytes even if we use less  */
+      return 256;
     case FOURCC_sowt:
     case FOURCC_twos:{
       guint64 block_idx;