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
4d1418cd
Commit
4d1418cd
authored
Oct 08, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: fix signed overflows in x*0x01010101 expressions
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
d66b9dec
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
h264.c
libavcodec/h264.c
+1
-1
h264_mvpred.h
libavcodec/h264_mvpred.h
+1
-1
No files found.
libavcodec/h264.c
View file @
4d1418cd
...
...
@@ -1668,7 +1668,7 @@ static av_always_inline void hl_decode_mb_predict_luma(H264Context *h, int mb_ty
tr_high
=
((
uint16_t
*
)
ptr
)[
3
-
linesize
/
2
]
*
0x0001000100010001ULL
;
topright
=
(
uint8_t
*
)
&
tr_high
;
}
else
{
tr
=
ptr
[
3
-
linesize
]
*
0x01010101
;
tr
=
ptr
[
3
-
linesize
]
*
0x01010101
u
;
topright
=
(
uint8_t
*
)
&
tr
;
}
}
else
...
...
libavcodec/h264_mvpred.h
View file @
4d1418cd
...
...
@@ -588,7 +588,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){
ref_cache
[
3
-
1
*
8
]
=
ref
[
4
*
top_xy
+
3
];
}
else
{
AV_ZERO128
(
mv_cache
[
0
-
1
*
8
]);
AV_WN32A
(
&
ref_cache
[
0
-
1
*
8
],
((
top_type
?
LIST_NOT_USED
:
PART_NOT_AVAILABLE
)
&
0xFF
)
*
0x01010101
);
AV_WN32A
(
&
ref_cache
[
0
-
1
*
8
],
((
top_type
?
LIST_NOT_USED
:
PART_NOT_AVAILABLE
)
&
0xFF
)
*
0x01010101
u
);
}
if
(
mb_type
&
(
MB_TYPE_16x8
|
MB_TYPE_8x8
)){
...
...
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