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
0abe923d
Commit
0abe923d
authored
May 29, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: fix forgotten lowres op_index limits
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c2625c26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mpegvideo.c
libavcodec/mpegvideo.c
+2
-2
No files found.
libavcodec/mpegvideo.c
View file @
0abe923d
...
...
@@ -2232,7 +2232,7 @@ static av_always_inline void mpeg_motion_lowres(MpegEncContext *s,
int
mx
,
my
,
src_x
,
src_y
,
uvsrc_x
,
uvsrc_y
,
uvlinesize
,
linesize
,
sx
,
sy
,
uvsx
,
uvsy
;
const
int
lowres
=
s
->
avctx
->
lowres
;
const
int
op_index
=
FFMIN
(
lowres
-
1
+
s
->
chroma_x_shift
,
2
);
const
int
op_index
=
FFMIN
(
lowres
-
1
+
s
->
chroma_x_shift
,
3
);
const
int
block_s
=
8
>>
lowres
;
const
int
s_mask
=
(
2
<<
lowres
)
-
1
;
const
int
h_edge_pos
=
s
->
h_edge_pos
>>
lowres
;
...
...
@@ -2356,7 +2356,7 @@ static inline void chroma_4mv_motion_lowres(MpegEncContext *s,
int
mx
,
int
my
)
{
const
int
lowres
=
s
->
avctx
->
lowres
;
const
int
op_index
=
FFMIN
(
lowres
,
2
);
const
int
op_index
=
FFMIN
(
lowres
,
3
);
const
int
block_s
=
8
>>
lowres
;
const
int
s_mask
=
(
2
<<
lowres
)
-
1
;
const
int
h_edge_pos
=
s
->
h_edge_pos
>>
lowres
+
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