Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
0067da58
Commit
0067da58
authored
Aug 29, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/msrle: add a flush() callback
The reference frame isn't valid after seeking.
parent
59e651c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
msrle.c
libavcodec/msrle.c
+8
-0
No files found.
libavcodec/msrle.c
View file @
0067da58
...
@@ -148,6 +148,13 @@ static int msrle_decode_frame(AVCodecContext *avctx,
...
@@ -148,6 +148,13 @@ static int msrle_decode_frame(AVCodecContext *avctx,
return
buf_size
;
return
buf_size
;
}
}
static
void
msrle_decode_flush
(
AVCodecContext
*
avctx
)
{
MsrleContext
*
s
=
avctx
->
priv_data
;
av_frame_unref
(
s
->
frame
);
}
static
av_cold
int
msrle_decode_end
(
AVCodecContext
*
avctx
)
static
av_cold
int
msrle_decode_end
(
AVCodecContext
*
avctx
)
{
{
MsrleContext
*
s
=
avctx
->
priv_data
;
MsrleContext
*
s
=
avctx
->
priv_data
;
...
@@ -167,5 +174,6 @@ AVCodec ff_msrle_decoder = {
...
@@ -167,5 +174,6 @@ AVCodec ff_msrle_decoder = {
.
init
=
msrle_decode_init
,
.
init
=
msrle_decode_init
,
.
close
=
msrle_decode_end
,
.
close
=
msrle_decode_end
,
.
decode
=
msrle_decode_frame
,
.
decode
=
msrle_decode_frame
,
.
flush
=
msrle_decode_flush
,
.
capabilities
=
AV_CODEC_CAP_DR1
,
.
capabilities
=
AV_CODEC_CAP_DR1
,
};
};
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