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
e8cafd27
Commit
e8cafd27
authored
Apr 03, 2013
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: Clear the mb members via memset instead of using dsputil
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
6d25c9db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
h264.c
libavcodec/h264.c
+3
-2
No files found.
libavcodec/h264.c
View file @
e8cafd27
...
@@ -1612,6 +1612,9 @@ static int decode_update_thread_context(AVCodecContext *dst,
...
@@ -1612,6 +1612,9 @@ static int decode_update_thread_context(AVCodecContext *dst,
memset
(
h
->
pps_buffers
,
0
,
sizeof
(
h
->
pps_buffers
));
memset
(
h
->
pps_buffers
,
0
,
sizeof
(
h
->
pps_buffers
));
memset
(
&
h
->
er
,
0
,
sizeof
(
h
->
er
));
memset
(
&
h
->
er
,
0
,
sizeof
(
h
->
er
));
memset
(
&
h
->
me
,
0
,
sizeof
(
h
->
me
));
memset
(
&
h
->
me
,
0
,
sizeof
(
h
->
me
));
memset
(
&
h
->
mb
,
0
,
sizeof
(
h
->
mb
));
memset
(
&
h
->
mb_luma_dc
,
0
,
sizeof
(
h
->
mb_luma_dc
));
memset
(
&
h
->
mb_padding
,
0
,
sizeof
(
h
->
mb_padding
));
h
->
context_initialized
=
0
;
h
->
context_initialized
=
0
;
memset
(
&
h
->
cur_pic
,
0
,
sizeof
(
h
->
cur_pic
));
memset
(
&
h
->
cur_pic
,
0
,
sizeof
(
h
->
cur_pic
));
...
@@ -1640,8 +1643,6 @@ static int decode_update_thread_context(AVCodecContext *dst,
...
@@ -1640,8 +1643,6 @@ static int decode_update_thread_context(AVCodecContext *dst,
h
->
thread_context
[
0
]
=
h
;
h
->
thread_context
[
0
]
=
h
;
h
->
dsp
.
clear_blocks
(
h
->
mb
);
h
->
dsp
.
clear_blocks
(
h
->
mb
+
(
24
*
16
<<
h
->
pixel_shift
));
h
->
context_initialized
=
1
;
h
->
context_initialized
=
1
;
}
}
...
...
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