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
3d1af11d
Commit
3d1af11d
authored
Nov 26, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sol: use AV_RL32 instead of raw pointer cast
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
b7581b5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
sol.c
libavformat/sol.c
+2
-3
No files found.
libavformat/sol.c
View file @
3d1af11d
...
...
@@ -23,7 +23,7 @@
* Based on documents from Game Audio Player and own research
*/
#include "libavutil/
bswap
.h"
#include "libavutil/
intreadwrite
.h"
#include "avformat.h"
#include "pcm.h"
...
...
@@ -33,8 +33,7 @@
static
int
sol_probe
(
AVProbeData
*
p
)
{
/* check file header */
uint16_t
magic
;
magic
=
av_le2ne16
(
*
((
uint16_t
*
)
p
->
buf
));
uint16_t
magic
=
AV_RL32
(
p
->
buf
);
if
((
magic
==
0x0B8D
||
magic
==
0x0C0D
||
magic
==
0x0C8D
)
&&
p
->
buf
[
2
]
==
'S'
&&
p
->
buf
[
3
]
==
'O'
&&
p
->
buf
[
4
]
==
'L'
&&
p
->
buf
[
5
]
==
0
)
...
...
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