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
aaa1e4cd
Commit
aaa1e4cd
authored
Jan 14, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l
Originally committed as revision 1460 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
77b71ddc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
huffyuv.c
libavcodec/huffyuv.c
+3
-3
No files found.
libavcodec/huffyuv.c
View file @
aaa1e4cd
/*
* huffyuv codec for libavcodec
*
* Copyright (c) 2002 Michael Niedermayer <michaelni@gmx.at>
* Copyright (c) 2002
-2003
Michael Niedermayer <michaelni@gmx.at>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -461,8 +461,6 @@ static int encode_init(AVCodecContext *avctx)
s
->
version
=
2
;
avctx
->
coded_frame
=
&
s
->
picture
;
s
->
picture
.
pict_type
=
FF_I_TYPE
;
s
->
picture
.
key_frame
=
1
;
switch
(
avctx
->
pix_fmt
){
case
PIX_FMT_YUV420P
:
...
...
@@ -933,6 +931,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
init_put_bits
(
&
s
->
pb
,
buf
,
buf_size
,
NULL
,
NULL
);
*
p
=
*
pict
;
p
->
pict_type
=
FF_I_TYPE
;
p
->
key_frame
=
1
;
if
(
avctx
->
pix_fmt
==
PIX_FMT_YUV422P
||
avctx
->
pix_fmt
==
PIX_FMT_YUV420P
){
int
lefty
,
leftu
,
leftv
,
y
,
cy
;
...
...
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