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
bc9a4597
Commit
bc9a4597
authored
Jan 03, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maybe fixing a segfault
Originally committed as revision 7407 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
78954a05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
wmv2.c
libavcodec/wmv2.c
+6
-0
No files found.
libavcodec/wmv2.c
View file @
bc9a4597
...
...
@@ -643,6 +643,12 @@ void ff_mspel_motion(MpegEncContext *s,
v_edge_pos
=
s
->
v_edge_pos
;
src_x
=
clip
(
src_x
,
-
16
,
s
->
width
);
src_y
=
clip
(
src_y
,
-
16
,
s
->
height
);
if
(
src_x
<=-
16
||
src_x
>=
s
->
width
)
dxy
&=
~
3
;
if
(
src_y
<=-
16
||
src_y
>=
s
->
height
)
dxy
&=
~
4
;
linesize
=
s
->
linesize
;
uvlinesize
=
s
->
uvlinesize
;
ptr
=
ref_picture
[
0
]
+
(
src_y
*
linesize
)
+
src_x
;
...
...
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