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
df92772c
Commit
df92772c
authored
Jun 30, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apedec: add flush function
Originally committed as revision 23900 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
680b2321
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
apedec.c
libavcodec/apedec.c
+7
-0
No files found.
libavcodec/apedec.c
View file @
df92772c
...
@@ -877,6 +877,12 @@ static int ape_decode_frame(AVCodecContext * avctx,
...
@@ -877,6 +877,12 @@ static int ape_decode_frame(AVCodecContext * avctx,
return
bytes_used
;
return
bytes_used
;
}
}
static
void
ape_flush
(
AVCodecContext
*
avctx
)
{
APEContext
*
s
=
avctx
->
priv_data
;
s
->
samples
=
0
;
}
AVCodec
ape_decoder
=
{
AVCodec
ape_decoder
=
{
"ape"
,
"ape"
,
AVMEDIA_TYPE_AUDIO
,
AVMEDIA_TYPE_AUDIO
,
...
@@ -887,5 +893,6 @@ AVCodec ape_decoder = {
...
@@ -887,5 +893,6 @@ AVCodec ape_decoder = {
ape_decode_close
,
ape_decode_close
,
ape_decode_frame
,
ape_decode_frame
,
.
capabilities
=
CODEC_CAP_SUBFRAMES
,
.
capabilities
=
CODEC_CAP_SUBFRAMES
,
.
flush
=
ape_flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Monkey's Audio"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Monkey's Audio"
),
};
};
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