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
809b2a30
Commit
809b2a30
authored
Feb 04, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 4940 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
82fcbc14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
mpegvideo.c
libavcodec/mpegvideo.c
+4
-6
No files found.
libavcodec/mpegvideo.c
View file @
809b2a30
...
...
@@ -237,20 +237,18 @@ const uint8_t *ff_find_start_code(const uint8_t * restrict p, const uint8_t *end
if
(
tmp
==
0x100
||
p
==
end
)
return
p
;
}
p
--
;
// need to recheck or might miss one
end
--
;
// we need the byte after 00 00 01 too
while
(
p
<
end
){
if
(
p
[
0
]
>
1
)
p
+=
3
;
else
if
(
p
[
-
1
]
)
p
+=
2
;
else
if
(
p
[
-
2
]
|
(
p
[
0
]
-
1
))
p
++
;
if
(
p
[
-
1
]
>
1
)
p
+=
3
;
else
if
(
p
[
-
2
]
)
p
+=
2
;
else
if
(
p
[
-
3
]
|
(
p
[
-
1
]
-
1
))
p
++
;
else
{
p
++
;
break
;
}
}
p
=
FFMIN
(
p
,
end
)
-
3
;
p
=
FFMIN
(
p
,
end
)
-
4
;
*
state
=
be2me_32
(
unaligned32
(
p
));
return
p
+
4
;
...
...
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