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
80dc7c01
Commit
80dc7c01
authored
Dec 25, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avs: call release_buffer() at the end.
Fixes a memleak.
parent
06e8d38f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
avs.c
libavcodec/avs.c
+10
-0
No files found.
libavcodec/avs.c
View file @
80dc7c01
...
...
@@ -161,6 +161,15 @@ static av_cold int avs_decode_init(AVCodecContext * avctx)
return
0
;
}
static
av_cold
int
avs_decode_end
(
AVCodecContext
*
avctx
)
{
AvsContext
*
s
=
avctx
->
priv_data
;
if
(
s
->
picture
.
data
[
0
])
avctx
->
release_buffer
(
avctx
,
&
s
->
picture
);
return
0
;
}
AVCodec
ff_avs_decoder
=
{
.
name
=
"avs"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
...
...
@@ -168,6 +177,7 @@ AVCodec ff_avs_decoder = {
.
priv_data_size
=
sizeof
(
AvsContext
),
.
init
=
avs_decode_init
,
.
decode
=
avs_decode_frame
,
.
close
=
avs_decode_end
,
.
capabilities
=
CODEC_CAP_DR1
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"AVS (Audio Video Standard) video"
),
};
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