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
dccea0ed
Commit
dccea0ed
authored
Jun 23, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/sheervideo: fix YbYr format decoding
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
abb3cc46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sheervideo.c
libavcodec/sheervideo.c
+4
-4
No files found.
libavcodec/sheervideo.c
View file @
dccea0ed
...
...
@@ -1794,9 +1794,9 @@ static void decode_ybyr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
if
(
get_bits1
(
gb
))
{
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
2
)
{
dst_y
[
x
]
=
get_bits
(
gb
,
8
);
dst_u
[
x
/
2
]
=
get_bits
(
gb
,
8
);
dst_u
[
x
/
2
]
=
get_bits
(
gb
,
8
)
+
128
;
dst_y
[
x
+
1
]
=
get_bits
(
gb
,
8
);
dst_v
[
x
/
2
]
=
get_bits
(
gb
,
8
);
dst_v
[
x
/
2
]
=
get_bits
(
gb
,
8
)
+
128
;
}
}
else
{
int
pred
[
4
]
=
{
-
128
,
128
,
128
,
0
};
...
...
@@ -1824,9 +1824,9 @@ static void decode_ybyr(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
if
(
get_bits1
(
gb
))
{
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
2
)
{
dst_y
[
x
]
=
get_bits
(
gb
,
8
);
dst_u
[
x
/
2
]
=
get_bits
(
gb
,
8
);
dst_u
[
x
/
2
]
=
get_bits
(
gb
,
8
)
+
128
;
dst_y
[
x
+
1
]
=
get_bits
(
gb
,
8
);
dst_v
[
x
/
2
]
=
get_bits
(
gb
,
8
);
dst_v
[
x
/
2
]
=
get_bits
(
gb
,
8
)
+
128
;
}
}
else
{
int
pred_TL
[
4
],
pred_L
[
4
],
pred_T
[
4
];
...
...
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