title: Problems with android k4l-video-trimmer library
body: <p>Is anyone used <a href="https://github.com/titansgroup/k4l-video-trimmer" rel="nofollow noreferrer">https://github.com/titansgroup/k4l-video-trimmer</a> library for cropping video on Android?</p>
  
  <p>Yesterday all worked fine. Today I'm open the project, created the build, without any changes, run it and try to crop video and got exception</p>
  
  <pre><code> 08-01 15:53:20.515 13722-14119/com.urazito.matreshka E/AndroidRuntime: FATAL EXCEPTION: pool-4-thread-1
  Process: com.urazito.matreshka, PID: 13722
  java.lang.RuntimeException: A cast to int has gone wrong. Please contact the mp4parser discussion group (4009305683)
  at com.googlecode.mp4parser.util.CastUtils.l2i(CastUtils.java:30)
  at com.googlecode.mp4parser.AbstractBox.parse(AbstractBox.java:110)
  at com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:107)
  at com.googlecode.mp4parser.BasicContainer.next(BasicContainer.java:185)
  at com.googlecode.mp4parser.BasicContainer.hasNext(BasicContainer.java:161)
  at com.googlecode.mp4parser.util.LazyList.blowup(LazyList.java:30)
  at com.googlecode.mp4parser.util.LazyList.size(LazyList.java:77)
  at com.googlecode.mp4parser.BasicContainer.getBoxes(BasicContainer.java:80)
  at com.googlecode.mp4parser.authoring.samples.DefaultMp4SampleList.&lt;init&gt;(DefaultMp4SampleList.java:36)
  at com.coremedia.iso.boxes.mdat.SampleList.&lt;init&gt;(SampleList.java:33)
  at com.googlecode.mp4parser.authoring.Mp4TrackImpl.&lt;init&gt;(Mp4TrackImpl.java:64)
  at com.googlecode.mp4parser.authoring.container.mp4.MovieCreator.build(MovieCreator.java:57)
  at life.knowledge4.videotrimmer.utils.TrimVideoUtils.genVideoUsingMp4Parser(TrimVideoUtils.java:72)
  at life.knowledge4.videotrimmer.utils.TrimVideoUtils.startTrim(TrimVideoUtils.java:65)
  at life.knowledge4.videotrimmer.K4LVideoTrimmer$5.execute(K4LVideoTrimmer.java:354)
  at life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:212)
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
  at java.util.concurrent.FutureTask.run(FutureTask.java:237)
  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
  at java.lang.Thread.run(Thread.java:818)
  </code></pre>
  
  <p>How it possible?? There was no changes. At all.. </p>
  
  <p>In CastsUtil i'm found this method</p>
  
  <pre><code>public static int l2i(long l) {
      if (l &gt; Integer.MAX_VALUE || l &lt; Integer.MIN_VALUE) {
          throw new RuntimeException("A cast to int has gone wrong. Please contact the mp4parser discussion group (" + l + ")");
      }
      return (int) l;
  }
  </code></pre>