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
dde86d0d
Commit
dde86d0d
authored
Apr 18, 2020
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_spp: Remove unused AVCodecContext
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
70d396c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
vf_spp.c
libavfilter/vf_spp.c
+1
-6
vf_spp.h
libavfilter/vf_spp.h
+0
-2
No files found.
libavfilter/vf_spp.c
View file @
dde86d0d
...
...
@@ -460,9 +460,8 @@ static av_cold int init_dict(AVFilterContext *ctx, AVDictionary **opts)
SPPContext
*
s
=
ctx
->
priv
;
int
ret
;
s
->
avctx
=
avcodec_alloc_context3
(
NULL
);
s
->
dct
=
avcodec_dct_alloc
();
if
(
!
s
->
avctx
||
!
s
->
dct
)
if
(
!
s
->
dct
)
return
AVERROR
(
ENOMEM
);
if
(
opts
)
{
...
...
@@ -489,10 +488,6 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep
(
&
s
->
temp
);
av_freep
(
&
s
->
src
);
if
(
s
->
avctx
)
{
avcodec_close
(
s
->
avctx
);
av_freep
(
&
s
->
avctx
);
}
av_freep
(
&
s
->
dct
);
av_freep
(
&
s
->
non_b_qp_table
);
}
...
...
libavfilter/vf_spp.h
View file @
dde86d0d
...
...
@@ -22,7 +22,6 @@
#ifndef AVFILTER_SPP_H
#define AVFILTER_SPP_H
#include "libavcodec/avcodec.h"
#include "libavcodec/avdct.h"
#include "avfilter.h"
...
...
@@ -38,7 +37,6 @@ typedef struct SPPContext {
int
temp_linesize
;
uint8_t
*
src
;
uint16_t
*
temp
;
AVCodecContext
*
avctx
;
AVDCT
*
dct
;
int8_t
*
non_b_qp_table
;
int
non_b_qp_alloc_size
;
...
...
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