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
ed2c8148
authored
Feb 06, 2022
by
Dustin
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'everything' into avi
parents
35c97886
05db1717
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/avi/MpegAudioChunkHandler.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/avi/VideoFormat.java
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/avi/MpegAudioChunkHandler.java
View file @
ed2c8148
...
@@ -143,13 +143,7 @@ public class MpegAudioChunkHandler extends ChunkHandler {
...
@@ -143,13 +143,7 @@ public class MpegAudioChunkHandler extends ChunkHandler {
public
void
setIndex
(
int
index
)
{
public
void
setIndex
(
int
index
)
{
super
.
setIndex
(
index
);
super
.
setIndex
(
index
);
syncTime
();
syncTime
();
if
(
frameRemaining
!=
0
)
{
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
;
}
}
}
private
void
syncTime
()
{
private
void
syncTime
()
{
...
...
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/avi/VideoFormat.java
View file @
ed2c8148
...
@@ -42,11 +42,12 @@ public class VideoFormat {
...
@@ -42,11 +42,12 @@ public class VideoFormat {
STREAM_MAP
.
put
(
'a'
|
(
'v'
<<
8
)
|
(
'c'
<<
16
)
|
(
'1'
<<
24
),
MimeTypes
.
VIDEO_H264
);
STREAM_MAP
.
put
(
'a'
|
(
'v'
<<
8
)
|
(
'c'
<<
16
)
|
(
'1'
<<
24
),
MimeTypes
.
VIDEO_H264
);
STREAM_MAP
.
put
(
'A'
|
(
'V'
<<
8
)
|
(
'C'
<<
16
)
|
(
'1'
<<
24
),
MimeTypes
.
VIDEO_H264
);
STREAM_MAP
.
put
(
'A'
|
(
'V'
<<
8
)
|
(
'C'
<<
16
)
|
(
'1'
<<
24
),
MimeTypes
.
VIDEO_H264
);
STREAM_MAP
.
put
(
'3'
|
(
'V'
<<
8
)
|
(
'I'
<<
16
)
|
(
'D'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'3'
|
(
'V'
<<
8
)
|
(
'I'
<<
16
)
|
(
'D'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'x'
|
(
'v'
<<
8
)
|
(
'i'
<<
16
)
|
(
'd'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
XVID
,
mimeType
);
STREAM_MAP
.
put
(
'D'
|
(
'X'
<<
8
)
|
(
'5'
<<
16
)
|
(
'0'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'd'
|
(
'i'
<<
8
)
|
(
'v'
<<
16
)
|
(
'x'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'd'
|
(
'i'
<<
8
)
|
(
'v'
<<
16
)
|
(
'x'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'D'
|
(
'I'
<<
8
)
|
(
'V'
<<
16
)
|
(
'X'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'D'
|
(
'X'
<<
8
)
|
(
'5'
<<
16
)
|
(
'0'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'F'
|
(
'M'
<<
8
)
|
(
'P'
<<
16
)
|
(
'4'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'F'
|
(
'M'
<<
8
)
|
(
'P'
<<
16
)
|
(
'4'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
'x'
|
(
'v'
<<
8
)
|
(
'i'
<<
16
)
|
(
'd'
<<
24
),
mimeType
);
STREAM_MAP
.
put
(
XVID
,
mimeType
);
STREAM_MAP
.
put
(
'M'
|
(
'J'
<<
8
)
|
(
'P'
<<
16
)
|
(
'G'
<<
24
),
MimeTypes
.
VIDEO_MJPEG
);
STREAM_MAP
.
put
(
'M'
|
(
'J'
<<
8
)
|
(
'P'
<<
16
)
|
(
'G'
<<
24
),
MimeTypes
.
VIDEO_MJPEG
);
STREAM_MAP
.
put
(
'm'
|
(
'j'
<<
8
)
|
(
'p'
<<
16
)
|
(
'g'
<<
24
),
MimeTypes
.
VIDEO_MJPEG
);
STREAM_MAP
.
put
(
'm'
|
(
'j'
<<
8
)
|
(
'p'
<<
16
)
|
(
'g'
<<
24
),
MimeTypes
.
VIDEO_MJPEG
);
}
}
...
...
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