Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
05db1717
authored
Feb 06, 2022
by
Dustin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove method I didn't end up needing
parent
e7cbb3d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
25 deletions
library/common/src/main/java/com/google/android/exoplayer2/util/ParsableByteArray.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/avi/MpegAudioChunkHandler.java
library/common/src/main/java/com/google/android/exoplayer2/util/ParsableByteArray.java
View file @
05db1717
...
...
@@ -565,22 +565,4 @@ public final class ParsableByteArray {
position
+=
length
;
return
value
;
}
/**
* The data from the end of the buffer is copied to the front
* The limit() because the bytesLeft() and position is zero
*/
public
void
compact
()
{
if
(
bytesLeft
()
==
0
)
{
limit
=
0
;
}
else
{
final
ByteBuffer
byteBuffer
=
ByteBuffer
.
wrap
(
data
);
byteBuffer
.
limit
(
limit
);
byteBuffer
.
position
(
position
);
byteBuffer
.
compact
();
byteBuffer
.
flip
();
limit
=
byteBuffer
.
limit
();
}
position
=
0
;
}
}
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/avi/MpegAudioChunkHandler.java
View file @
05db1717
...
...
@@ -143,13 +143,7 @@ public class MpegAudioChunkHandler extends ChunkHandler {
public
void
setIndex
(
int
index
)
{
super
.
setIndex
(
index
);
syncTime
();
if
(
frameRemaining
!=
0
)
{
// We have a partial frame in the output, no way to clear it, so just send it as is.
// Next frame should be key frame, so the codec should recover.
trackOutput
.
sampleMetadata
(
timeUs
,
0
,
header
.
frameSize
-
frameRemaining
,
0
,
null
);
frameRemaining
=
0
;
}
frameRemaining
=
0
;
}
private
void
syncTime
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment