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
6a8475dc
Commit
6a8475dc
authored
Feb 08, 2014
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asvenc: free avctx->coded_frame on codec close
parent
d6eac2f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
asvenc.c
libavcodec/asvenc.c
+8
-0
No files found.
libavcodec/asvenc.c
View file @
6a8475dc
...
...
@@ -263,6 +263,12 @@ static av_cold int encode_init(AVCodecContext *avctx){
return
0
;
}
static
av_cold
int
asv_encode_close
(
AVCodecContext
*
avctx
)
{
av_frame_free
(
&
avctx
->
coded_frame
);
return
0
;
}
#if CONFIG_ASV1_ENCODER
AVCodec
ff_asv1_encoder
=
{
...
...
@@ -273,6 +279,7 @@ AVCodec ff_asv1_encoder = {
.
priv_data_size
=
sizeof
(
ASV1Context
),
.
init
=
encode_init
,
.
encode2
=
encode_frame
,
.
close
=
asv_encode_close
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[]){
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_NONE
},
};
...
...
@@ -287,6 +294,7 @@ AVCodec ff_asv2_encoder = {
.
priv_data_size
=
sizeof
(
ASV1Context
),
.
init
=
encode_init
,
.
encode2
=
encode_frame
,
.
close
=
asv_encode_close
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[]){
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_NONE
},
};
...
...
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