Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
78168450
Commit
78168450
authored
Oct 18, 2007
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 10800 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6c867e04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
electronicarts.c
libavformat/electronicarts.c
+2
-7
No files found.
libavformat/electronicarts.c
View file @
78168450
...
...
@@ -36,7 +36,6 @@
#define MV0F_TAG MKTAG('M', 'V', '0', 'F')
#define EA_BITS_PER_SAMPLE 16
#define EA_PREAMBLE_SIZE 8
typedef
struct
EaDemuxContext
{
int
big_endian
;
...
...
@@ -286,16 +285,12 @@ static int ea_read_packet(AVFormatContext *s,
ByteIOContext
*
pb
=
&
s
->
pb
;
int
ret
=
0
;
int
packet_read
=
0
;
unsigned
char
preamble
[
EA_PREAMBLE_SIZE
];
unsigned
int
chunk_type
,
chunk_size
;
int
key
=
0
;
while
(
!
packet_read
)
{
if
(
get_buffer
(
pb
,
preamble
,
EA_PREAMBLE_SIZE
)
!=
EA_PREAMBLE_SIZE
)
return
AVERROR
(
EIO
);
chunk_type
=
AV_RL32
(
&
preamble
[
0
]);
chunk_size
=
AV_RL32
(
&
preamble
[
4
])
-
EA_PREAMBLE_SIZE
;
chunk_type
=
get_le32
(
pb
);
chunk_size
=
get_le32
(
pb
)
-
8
;
switch
(
chunk_type
)
{
/* audio data */
...
...
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