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
35aed74f
Commit
35aed74f
authored
Jun 26, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use AV_RN32 for an unaligned read in the mxg demuxer.
Fixes ticket #2707.
parent
e59fb3f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mxg.c
libavformat/mxg.c
+1
-1
No files found.
libavformat/mxg.c
View file @
35aed74f
...
...
@@ -74,7 +74,7 @@ static int mxg_read_header(AVFormatContext *s)
static
uint8_t
*
mxg_find_startmarker
(
uint8_t
*
p
,
uint8_t
*
end
)
{
for
(;
p
<
end
-
3
;
p
+=
4
)
{
uint32_t
x
=
*
(
uint32_t
*
)
p
;
uint32_t
x
=
AV_RN32
(
p
)
;
if
(
x
&
(
~
(
x
+
0x01010101
))
&
0x80808080
)
{
if
(
p
[
0
]
==
0xff
)
{
...
...
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