{"action":"closed","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/371","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/371/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/371/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/371/events","html_url":"https://github.com/google/ExoPlayer/issues/371","id":64744932,"number":371,"title":"Cannot seek full buffered MP4 video on using new Mp4SampleExtractor","user":{"login":"vipulpurohit","id":5219201,"avatar_url":"https://avatars.githubusercontent.com/u/5219201?v=3","gravatar_id":"","url":"https://api.github.com/users/vipulpurohit","html_url":"https://github.com/vipulpurohit","followers_url":"https://api.github.com/users/vipulpurohit/followers","following_url":"https://api.github.com/users/vipulpurohit/following{/other_user}","gists_url":"https://api.github.com/users/vipulpurohit/gists{/gist_id}","starred_url":"https://api.github.com/users/vipulpurohit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vipulpurohit/subscriptions","organizations_url":"https://api.github.com/users/vipulpurohit/orgs","repos_url":"https://api.github.com/users/vipulpurohit/repos","events_url":"https://api.github.com/users/vipulpurohit/events{/privacy}","received_events_url":"https://api.github.com/users/vipulpurohit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/ExoPlayer/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-27T11:46:34Z","updated_at":"2015-04-13T18:43:38Z","closed_at":"2015-04-13T18:43:38Z","body":"Hello\r\nWe are facing some issues with new Mp4SampleExtractor. We are trying to play a MP4 video via HTTP link. All went well till we play full video once but after closing video player when we replay video again (buffer is 100% now) and try to seek video it get stuck and throw this error :\r\n\r\n```\r\n03-27 17:05:49.561  13323-14270/E/ExoPlayerImplInternal﹕ Internal runtime error.\r\n    java.lang.IllegalArgumentException: Top bit not zero: -343067581\r\n            at com.google.android.exoplayer.mp4.Mp4Util.readUnsignedIntToInt(Mp4Util.java:73)\r\n            at com.google.android.exoplayer.mp4.Mp4Util.replaceLengthPrefixesWithAvcStartCodes(Mp4Util.java:87)\r\n            at com.google.android.exoplayer.source.Mp4SampleExtractor.readSample(Mp4SampleExtractor.java:398)\r\n            at com.google.android.exoplayer.source.DefaultSampleSource.readData(DefaultSampleSource.java:135)\r\n            at com.google.android.exoplayer.MediaCodecTrackRenderer.feedInputBuffer(MediaCodecTrackRenderer.java:530)\r\n            at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:447)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:401)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:203)\r\n            at android.os.Handler.dispatchMessage(Handler.java:98)\r\n            at android.os.Looper.loop(Looper.java:136)\r\n            at android.os.HandlerThread.run(HandlerThread.java:61)\r\n            at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)\r\n03-27 17:05:49.581  13323-13323/ E/EventLogger﹕ playerFailed [4.12]\r\n    com.google.android.exoplayer.ExoPlaybackException: java.lang.IllegalArgumentException: Top bit not zero: -343067581\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:236)\r\n            at android.os.Handler.dispatchMessage(Handler.java:98)\r\n            at android.os.Looper.loop(Looper.java:136)\r\n            at android.os.HandlerThread.run(HandlerThread.java:61)\r\n            at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)\r\n     Caused by: java.lang.IllegalArgumentException: Top bit not zero: -343067581\r\n            at com.google.android.exoplayer.mp4.Mp4Util.readUnsignedIntToInt(Mp4Util.java:73)\r\n            at com.google.android.exoplayer.mp4.Mp4Util.replaceLengthPrefixesWithAvcStartCodes(Mp4Util.java:87)\r\n            at com.google.android.exoplayer.source.Mp4SampleExtractor.readSample(Mp4SampleExtractor.java:398)\r\n            at com.google.android.exoplayer.source.DefaultSampleSource.readData(DefaultSampleSource.java:135)\r\n            at com.google.android.exoplayer.MediaCodecTrackRenderer.feedInputBuffer(MediaCodecTrackRenderer.java:530)\r\n            at com.google.android.exoplayer.MediaCodecTrackRenderer.doSomeWork(MediaCodecTrackRenderer.java:447)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:401)\r\n            at com.google.android.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:203)\r\n            at android.os.Handler.dispatchMessage(Handler.java:98)\r\n            at android.os.Looper.loop(Looper.java:136)\r\n            at android.os.HandlerThread.run(HandlerThread.java:61)\r\n            at com.google.android.exoplayer.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)\r\n```\r\n\r\n"}}