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
cbe265cc
Commit
cbe265cc
authored
May 07, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/m101: Simplify if() condition
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
03fceb77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
m101.c
libavcodec/m101.c
+3
-3
No files found.
libavcodec/m101.c
View file @
cbe265cc
...
...
@@ -88,12 +88,12 @@ static int m101_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
const
uint8_t
*
buf_src
=
buf
+
src_y
*
stride
+
40
*
block
;
for
(
x
=
0
;
x
<
16
&&
x
+
16
*
block
<
avctx
->
width
;
x
++
)
{
int
xd
=
x
+
16
*
block
;
if
(
!
(
x
&
1
))
{
if
(
x
&
1
)
{
luma
[
xd
]
=
(
4
*
buf_src
[
2
*
x
+
0
])
+
((
buf_src
[
32
+
(
x
>>
1
)]
>>
4
)
&
3
);
}
else
{
luma
[
xd
]
=
(
4
*
buf_src
[
2
*
x
+
0
])
+
(
buf_src
[
32
+
(
x
>>
1
)]
&
3
);
cb
[
xd
>>
1
]
=
(
4
*
buf_src
[
2
*
x
+
1
])
+
((
buf_src
[
32
+
(
x
>>
1
)]
>>
2
)
&
3
);
cr
[
xd
>>
1
]
=
(
4
*
buf_src
[
2
*
x
+
3
])
+
(
buf_src
[
32
+
(
x
>>
1
)]
>>
6
);
}
else
{
luma
[
xd
]
=
(
4
*
buf_src
[
2
*
x
+
0
])
+
((
buf_src
[
32
+
(
x
>>
1
)]
>>
4
)
&
3
);
}
}
}
...
...
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