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
c932f128
Commit
c932f128
authored
Jun 18, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/cavsdec: simplify % 512 operations
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0608bc65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cavsdec.c
libavcodec/cavsdec.c
+3
-3
No files found.
libavcodec/cavsdec.c
View file @
c932f128
...
...
@@ -1003,11 +1003,11 @@ static int decode_pic(AVSContext *h)
/* get temporal distances and MV scaling factors */
if
(
h
->
cur
.
f
->
pict_type
!=
AV_PICTURE_TYPE_B
)
{
h
->
dist
[
0
]
=
(
h
->
cur
.
poc
-
h
->
DPB
[
0
].
poc
+
512
)
%
512
;
h
->
dist
[
0
]
=
(
h
->
cur
.
poc
-
h
->
DPB
[
0
].
poc
)
&
511
;
}
else
{
h
->
dist
[
0
]
=
(
h
->
DPB
[
0
].
poc
-
h
->
cur
.
poc
+
512
)
%
512
;
h
->
dist
[
0
]
=
(
h
->
DPB
[
0
].
poc
-
h
->
cur
.
poc
)
&
511
;
}
h
->
dist
[
1
]
=
(
h
->
cur
.
poc
-
h
->
DPB
[
1
].
poc
+
512
)
%
512
;
h
->
dist
[
1
]
=
(
h
->
cur
.
poc
-
h
->
DPB
[
1
].
poc
)
&
511
;
h
->
scale_den
[
0
]
=
h
->
dist
[
0
]
?
512
/
h
->
dist
[
0
]
:
0
;
h
->
scale_den
[
1
]
=
h
->
dist
[
1
]
?
512
/
h
->
dist
[
1
]
:
0
;
if
(
h
->
cur
.
f
->
pict_type
==
AV_PICTURE_TYPE_B
)
{
...
...
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