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
c206a324
Commit
c206a324
authored
Jun 07, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/sheervideo: fix order of operations for raw lines
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
60bac785
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
sheervideo.c
libavcodec/sheervideo.c
+8
-8
No files found.
libavcodec/sheervideo.c
View file @
c206a324
...
...
@@ -887,12 +887,12 @@ static void decode_ca2p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
if
(
get_bits1
(
gb
))
{
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
2
)
{
dst_a
[
x
]
=
get_bits
(
gb
,
10
);
dst_y
[
x
]
=
get_bits
(
gb
,
10
);
dst_u
[
x
/
2
]
=
get_bits
(
gb
,
10
);
dst_a
[
x
+
1
]
=
get_bits
(
gb
,
10
);
dst_y
[
x
+
1
]
=
get_bits
(
gb
,
10
);
dst_a
[
x
]
=
get_bits
(
gb
,
10
);
dst_v
[
x
/
2
]
=
get_bits
(
gb
,
10
);
dst_a
[
x
+
1
]
=
get_bits
(
gb
,
10
);
}
}
else
{
int
pred
[
4
]
=
{
502
,
512
,
512
,
502
};
...
...
@@ -924,12 +924,12 @@ static void decode_ca2p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
for
(
y
=
1
;
y
<
avctx
->
height
;
y
++
)
{
if
(
get_bits1
(
gb
))
{
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
2
)
{
dst_a
[
x
]
=
get_bits
(
gb
,
10
);
dst_y
[
x
]
=
get_bits
(
gb
,
10
);
dst_u
[
x
/
2
]
=
get_bits
(
gb
,
10
);
dst_a
[
x
+
1
]
=
get_bits
(
gb
,
10
);
dst_y
[
x
+
1
]
=
get_bits
(
gb
,
10
);
dst_a
[
x
]
=
get_bits
(
gb
,
10
);
dst_v
[
x
/
2
]
=
get_bits
(
gb
,
10
);
dst_a
[
x
+
1
]
=
get_bits
(
gb
,
10
);
}
}
else
{
int
pred_TL
[
6
],
pred_L
[
6
],
pred_T
[
6
];
...
...
@@ -989,12 +989,12 @@ static void decode_c82p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
if
(
get_bits1
(
gb
))
{
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
2
)
{
dst_a
[
x
]
=
get_bits
(
gb
,
8
);
dst_y
[
x
]
=
get_bits
(
gb
,
8
);
dst_u
[
x
/
2
]
=
get_bits
(
gb
,
8
);
dst_a
[
x
+
1
]
=
get_bits
(
gb
,
8
);
dst_y
[
x
+
1
]
=
get_bits
(
gb
,
8
);
dst_a
[
x
]
=
get_bits
(
gb
,
8
);
dst_v
[
x
/
2
]
=
get_bits
(
gb
,
8
);
dst_a
[
x
+
1
]
=
get_bits
(
gb
,
8
);
}
}
else
{
int
pred
[
4
]
=
{
-
125
,
128
,
128
,
125
};
...
...
@@ -1026,12 +1026,12 @@ static void decode_c82p(AVCodecContext *avctx, AVFrame *p, GetBitContext *gb)
for
(
y
=
1
;
y
<
avctx
->
height
;
y
++
)
{
if
(
get_bits1
(
gb
))
{
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
2
)
{
dst_a
[
x
]
=
get_bits
(
gb
,
8
);
dst_y
[
x
]
=
get_bits
(
gb
,
8
);
dst_u
[
x
/
2
]
=
get_bits
(
gb
,
8
);
dst_a
[
x
+
1
]
=
get_bits
(
gb
,
8
);
dst_y
[
x
+
1
]
=
get_bits
(
gb
,
8
);
dst_a
[
x
]
=
get_bits
(
gb
,
8
);
dst_v
[
x
/
2
]
=
get_bits
(
gb
,
8
);
dst_a
[
x
+
1
]
=
get_bits
(
gb
,
8
);
}
}
else
{
int
pred_TL
[
6
],
pred_L
[
6
],
pred_T
[
6
];
...
...
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