demux_mov: fix some memory allocation handling