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
e4f1ec3a
Commit
e4f1ec3a
authored
Dec 28, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explain the lack of +3/7
Originally committed as revision 16380 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7d204e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
h264_parser.c
libavcodec/h264_parser.c
+3
-0
No files found.
libavcodec/h264_parser.c
View file @
e4f1ec3a
...
...
@@ -45,6 +45,9 @@ int ff_h264_find_frame_end(H264Context *h, const uint8_t *buf, int buf_size)
for
(
i
=
0
;
i
<
buf_size
;
i
++
){
if
(
state
==
7
){
#ifdef HAVE_FAST_UNALIGNED
/* we check i<buf_size instead of i+3/7 because its simpler
* and there should be FF_INPUT_BUFFER_PADDING_SIZE bytes at the end
*/
# ifdef HAVE_FAST_64BIT
while
(
i
<
buf_size
&&
!
((
~*
(
uint64_t
*
)(
buf
+
i
)
&
(
*
(
uint64_t
*
)(
buf
+
i
)
-
0x0101010101010101ULL
))
&
0x8080808080808080ULL
))
i
+=
8
;
...
...
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