{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/1522","repository_url":"https://api.github.com/repos/google/ExoPlayer","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/1522/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/1522/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/1522/events","html_url":"https://github.com/google/ExoPlayer/issues/1522","id":154375704,"number":1522,"title":"Some AC3 tracks in passthrough mode have issues with seeking (ShieldTV 6.0)","user":{"login":"drhill","id":878790,"avatar_url":"https://avatars.githubusercontent.com/u/878790?v=3","gravatar_id":"","url":"https://api.github.com/users/drhill","html_url":"https://github.com/drhill","followers_url":"https://api.github.com/users/drhill/followers","following_url":"https://api.github.com/users/drhill/following{/other_user}","gists_url":"https://api.github.com/users/drhill/gists{/gist_id}","starred_url":"https://api.github.com/users/drhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drhill/subscriptions","organizations_url":"https://api.github.com/users/drhill/orgs","repos_url":"https://api.github.com/users/drhill/repos","events_url":"https://api.github.com/users/drhill/events{/privacy}","received_events_url":"https://api.github.com/users/drhill/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/ExoPlayer/labels/device%20specific%20issue","name":"device specific issue","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"andrewlewis","id":107897,"avatar_url":"https://avatars.githubusercontent.com/u/107897?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewlewis","html_url":"https://github.com/andrewlewis","followers_url":"https://api.github.com/users/andrewlewis/followers","following_url":"https://api.github.com/users/andrewlewis/following{/other_user}","gists_url":"https://api.github.com/users/andrewlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewlewis/subscriptions","organizations_url":"https://api.github.com/users/andrewlewis/orgs","repos_url":"https://api.github.com/users/andrewlewis/repos","events_url":"https://api.github.com/users/andrewlewis/events{/privacy}","received_events_url":"https://api.github.com/users/andrewlewis/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewlewis","id":107897,"avatar_url":"https://avatars.githubusercontent.com/u/107897?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewlewis","html_url":"https://github.com/andrewlewis","followers_url":"https://api.github.com/users/andrewlewis/followers","following_url":"https://api.github.com/users/andrewlewis/following{/other_user}","gists_url":"https://api.github.com/users/andrewlewis/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewlewis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewlewis/subscriptions","organizations_url":"https://api.github.com/users/andrewlewis/orgs","repos_url":"https://api.github.com/users/andrewlewis/repos","events_url":"https://api.github.com/users/andrewlewis/events{/privacy}","received_events_url":"https://api.github.com/users/andrewlewis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-05-12T01:04:52Z","updated_at":"2016-08-08T19:02:14Z","closed_at":null,"body":"On a few (at least one I can reproduce easily) shows with AC3 tracks being passed through to my receiver when I do a 30 second seek forward (or sometimes it takes 2-4 seeks) the current time becomes a horrible large number.\r\n\r\nThe problem occurs in exoplayer's AudioTrack.java AudioTrackUtil.getPlaybackHeadPosition() function here:\r\nif (lastRawPlaybackHeadPosition > rawPlaybackHeadPosition) {\r\n        // The value must have wrapped around.\r\n        rawPlaybackHeadWrapCount++;\r\n      }\r\n      lastRawPlaybackHeadPosition = rawPlaybackHeadPosition;\r\n      return rawPlaybackHeadPosition + (rawPlaybackHeadWrapCount << 32);\r\n\r\nThis is on an Nvidia Shield TV with 6.0 (API 23).  Whether I cheat and force needsPassthroughWorkaround = true (by removing the version check) or not.  My \"fix\" was to comment out the increment of rawPlaybackHeadWrapCount.  Not a good idea since I'm sure that is there for a good reason, but perhaps lastRawPlaybackHeadPosition should be checked to see if it is near a wrap threshold?\r\n\r\nI can provide an episode on Google Drive if needed."},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/238342036","html_url":"https://github.com/google/ExoPlayer/issues/1522#issuecomment-238342036","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/1522","id":238342036,"user":{"login":"cncb-gh","id":8257394,"avatar_url":"https://avatars.githubusercontent.com/u/8257394?v=3","gravatar_id":"","url":"https://api.github.com/users/cncb-gh","html_url":"https://github.com/cncb-gh","followers_url":"https://api.github.com/users/cncb-gh/followers","following_url":"https://api.github.com/users/cncb-gh/following{/other_user}","gists_url":"https://api.github.com/users/cncb-gh/gists{/gist_id}","starred_url":"https://api.github.com/users/cncb-gh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cncb-gh/subscriptions","organizations_url":"https://api.github.com/users/cncb-gh/orgs","repos_url":"https://api.github.com/users/cncb-gh/repos","events_url":"https://api.github.com/users/cncb-gh/events{/privacy}","received_events_url":"https://api.github.com/users/cncb-gh/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T19:02:14Z","updated_at":"2016-08-08T19:02:14Z","body":"Any word if NVidia will be providing a fix soon?"}}
{"actor":{"display_login":"cncb-gh"}}