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
8c812d73
Commit
8c812d73
authored
Oct 13, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l
Originally committed as revision 2371 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ac0c6638
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
huffyuv.c
libavcodec/huffyuv.c
+4
-4
No files found.
libavcodec/huffyuv.c
View file @
8c812d73
...
@@ -491,8 +491,8 @@ static int encode_init(AVCodecContext *avctx)
...
@@ -491,8 +491,8 @@ static int encode_init(AVCodecContext *avctx)
assert
(
width
&&
height
);
assert
(
width
&&
height
);
avctx
->
extradata
=
av_mallocz
(
1024
*
1
0
);
avctx
->
extradata
=
av_mallocz
(
1024
*
3
0
);
avctx
->
stats_out
=
av_mallocz
(
1024
*
1
0
);
avctx
->
stats_out
=
av_mallocz
(
1024
*
3
0
);
s
->
version
=
2
;
s
->
version
=
2
;
avctx
->
coded_frame
=
&
s
->
picture
;
avctx
->
coded_frame
=
&
s
->
picture
;
...
@@ -1054,11 +1054,11 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
...
@@ -1054,11 +1054,11 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
if
(
s
->
predictor
==
PLANE
&&
s
->
interlaced
<
cy
){
if
(
s
->
predictor
==
PLANE
&&
s
->
interlaced
<
cy
){
s
->
dsp
.
diff_bytes
(
s
->
temp
[
1
],
ydst
,
ydst
-
fake_ystride
,
width
);
s
->
dsp
.
diff_bytes
(
s
->
temp
[
1
],
ydst
,
ydst
-
fake_ystride
,
width
);
s
->
dsp
.
diff_bytes
(
s
->
temp
[
2
],
udst
,
udst
-
fake_ustride
,
width2
);
s
->
dsp
.
diff_bytes
(
s
->
temp
[
2
],
udst
,
udst
-
fake_ustride
,
width2
);
s
->
dsp
.
diff_bytes
(
s
->
temp
[
3
]
,
vdst
,
vdst
-
fake_vstride
,
width2
);
s
->
dsp
.
diff_bytes
(
s
->
temp
[
2
]
+
1250
,
vdst
,
vdst
-
fake_vstride
,
width2
);
lefty
=
sub_left_prediction
(
s
,
s
->
temp
[
0
],
s
->
temp
[
1
],
width
,
lefty
);
lefty
=
sub_left_prediction
(
s
,
s
->
temp
[
0
],
s
->
temp
[
1
],
width
,
lefty
);
leftu
=
sub_left_prediction
(
s
,
s
->
temp
[
1
],
s
->
temp
[
2
],
width2
,
leftu
);
leftu
=
sub_left_prediction
(
s
,
s
->
temp
[
1
],
s
->
temp
[
2
],
width2
,
leftu
);
leftv
=
sub_left_prediction
(
s
,
s
->
temp
[
2
],
s
->
temp
[
3
]
,
width2
,
leftv
);
leftv
=
sub_left_prediction
(
s
,
s
->
temp
[
2
],
s
->
temp
[
2
]
+
1250
,
width2
,
leftv
);
}
else
{
}
else
{
lefty
=
sub_left_prediction
(
s
,
s
->
temp
[
0
],
ydst
,
width
,
lefty
);
lefty
=
sub_left_prediction
(
s
,
s
->
temp
[
0
],
ydst
,
width
,
lefty
);
leftu
=
sub_left_prediction
(
s
,
s
->
temp
[
1
],
udst
,
width2
,
leftu
);
leftu
=
sub_left_prediction
(
s
,
s
->
temp
[
1
],
udst
,
width2
,
leftu
);
...
...
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