Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
de3553b0
Commit
de3553b0
authored
15 years ago
by
Jai Menon
Browse files
Options
Downloads
Patches
Plain Diff
pngdec.c : release allocated buffers.
Originally committed as revision 20680 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
483aad71
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/pngdec.c
+13
-1
13 additions, 1 deletion
libavcodec/pngdec.c
with
13 additions
and
1 deletion
libavcodec/pngdec.c
+
13
−
1
View file @
de3553b0
...
@@ -642,6 +642,18 @@ static av_cold int png_dec_init(AVCodecContext *avctx){
...
@@ -642,6 +642,18 @@ static av_cold int png_dec_init(AVCodecContext *avctx){
return
0
;
return
0
;
}
}
static
av_cold
int
png_dec_end
(
AVCodecContext
*
avctx
)
{
PNGDecContext
*
s
=
avctx
->
priv_data
;
if
(
s
->
picture1
.
data
[
0
])
avctx
->
release_buffer
(
avctx
,
&
s
->
picture1
);
if
(
s
->
picture2
.
data
[
0
])
avctx
->
release_buffer
(
avctx
,
&
s
->
picture2
);
return
0
;
}
AVCodec
png_decoder
=
{
AVCodec
png_decoder
=
{
"png"
,
"png"
,
CODEC_TYPE_VIDEO
,
CODEC_TYPE_VIDEO
,
...
@@ -649,7 +661,7 @@ AVCodec png_decoder = {
...
@@ -649,7 +661,7 @@ AVCodec png_decoder = {
sizeof
(
PNGDecContext
),
sizeof
(
PNGDecContext
),
png_dec_init
,
png_dec_init
,
NULL
,
NULL
,
NULL
,
//decode
_end,
png_dec
_end
,
decode_frame
,
decode_frame
,
CODEC_CAP_DR1
/*| CODEC_CAP_DRAW_HORIZ_BAND*/
,
CODEC_CAP_DR1
/*| CODEC_CAP_DRAW_HORIZ_BAND*/
,
NULL
,
NULL
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment