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
69fe25cd
Commit
69fe25cd
authored
Jul 26, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lclenc: remove unused code
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
fe375512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
lclenc.c
libavcodec/lclenc.c
+1
-8
No files found.
libavcodec/lclenc.c
View file @
69fe25cd
...
...
@@ -56,7 +56,6 @@
typedef
struct
LclEncContext
{
AVCodecContext
*
avctx
;
AVFrame
pic
;
// Image type
int
imgtype
;
...
...
@@ -73,10 +72,9 @@ typedef struct LclEncContext {
*
*/
static
int
encode_frame
(
AVCodecContext
*
avctx
,
AVPacket
*
pkt
,
const
AVFrame
*
p
ict
,
int
*
got_packet
)
const
AVFrame
*
p
,
int
*
got_packet
)
{
LclEncContext
*
c
=
avctx
->
priv_data
;
AVFrame
*
const
p
=
&
c
->
pic
;
int
i
,
ret
;
int
zret
;
// Zlib return code
int
max_size
=
deflateBound
(
&
c
->
zstream
,
avctx
->
width
*
avctx
->
height
*
3
);
...
...
@@ -84,10 +82,6 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
if
((
ret
=
ff_alloc_packet2
(
avctx
,
pkt
,
max_size
))
<
0
)
return
ret
;
*
p
=
*
pict
;
p
->
pict_type
=
AV_PICTURE_TYPE_I
;
p
->
key_frame
=
1
;
if
(
avctx
->
pix_fmt
!=
AV_PIX_FMT_BGR24
){
av_log
(
avctx
,
AV_LOG_ERROR
,
"Format not supported!
\n
"
);
return
-
1
;
...
...
@@ -140,7 +134,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
avctx
->
extradata
=
av_mallocz
(
8
+
FF_INPUT_BUFFER_PADDING_SIZE
);
if
(
!
avctx
->
extradata
)
return
AVERROR
(
ENOMEM
);
avctx
->
coded_frame
=
&
c
->
pic
;
c
->
compression
=
avctx
->
compression_level
==
FF_COMPRESSION_DEFAULT
?
COMP_ZLIB_NORMAL
:
...
...
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