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
d2ce1009
Commit
d2ce1009
authored
Jun 20, 2015
by
Rodger Combs
Committed by
Paul B Mahol
Jun 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/brstm: handle a BFSTM endianness oddity
parent
9c9cf395
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
brstm.c
libavformat/brstm.c
+11
-1
No files found.
libavformat/brstm.c
View file @
d2ce1009
...
...
@@ -296,7 +296,17 @@ static int read_header(AVFormatContext *s)
ret
=
AVERROR
(
ENOMEM
);
goto
fail
;
}
avio_read
(
s
->
pb
,
b
->
adpc
,
asize
);
if
(
bfstm
&&
codec
!=
AV_CODEC_ID_ADPCM_THP_LE
)
{
// Big-endian BFSTMs have little-endian SEEK tables
// for some strange reason.
int
i
;
for
(
i
=
0
;
i
<
asize
;
i
+=
2
)
{
b
->
adpc
[
i
+
1
]
=
avio_r8
(
s
->
pb
);
b
->
adpc
[
i
]
=
avio_r8
(
s
->
pb
);
}
}
else
{
avio_read
(
s
->
pb
,
b
->
adpc
,
asize
);
}
avio_skip
(
s
->
pb
,
size
-
asize
);
}
break
;
...
...
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