Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
0dceda12
Commit
0dceda12
authored
Apr 20, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/pdvdec: fix leaks on init failure and when seeking
parent
dc2da568
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
pdvdec.c
libavcodec/pdvdec.c
+10
-1
No files found.
libavcodec/pdvdec.c
View file @
0dceda12
...
...
@@ -113,6 +113,13 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
return
avpkt
->
size
;
}
static
void
decode_flush
(
AVCodecContext
*
avctx
)
{
PDVContext
*
s
=
avctx
->
priv_data
;
av_frame_unref
(
s
->
previous_frame
);
}
const
FFCodec
ff_pdv_decoder
=
{
.
p
.
name
=
"pdv"
,
CODEC_LONG_NAME
(
"PDV (PlayDate Video)"
),
...
...
@@ -120,8 +127,10 @@ const FFCodec ff_pdv_decoder = {
.
p
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
p
.
id
=
AV_CODEC_ID_PDV
,
.
p
.
capabilities
=
AV_CODEC_CAP_DR1
,
.
caps_internal
=
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
,
.
caps_internal
=
FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM
|
FF_CODEC_CAP_INIT_CLEANUP
,
.
init
=
decode_init
,
.
close
=
decode_end
,
.
flush
=
decode_flush
,
FF_CODEC_DECODE_CB
(
decode_frame
),
};
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