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
4ba8c521
Commit
4ba8c521
authored
Aug 20, 2011
by
Kostya Shishkov
Committed by
Luca Barbato
Aug 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WavPack decoder: implement flush function
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
eaf2d37a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
wavpack.c
libavcodec/wavpack.c
+10
-0
No files found.
libavcodec/wavpack.c
View file @
4ba8c521
...
@@ -1189,6 +1189,15 @@ static int wavpack_decode_frame(AVCodecContext *avctx,
...
@@ -1189,6 +1189,15 @@ static int wavpack_decode_frame(AVCodecContext *avctx,
return
s
->
samples_left
>
0
?
0
:
avpkt
->
size
;
return
s
->
samples_left
>
0
?
0
:
avpkt
->
size
;
}
}
static
void
wavpack_decode_flush
(
AVCodecContext
*
avctx
)
{
WavpackContext
*
s
=
avctx
->
priv_data
;
int
i
;
for
(
i
=
0
;
i
<
s
->
fdec_num
;
i
++
)
s
->
fdec
[
i
]
->
samples_left
=
0
;
}
AVCodec
ff_wavpack_decoder
=
{
AVCodec
ff_wavpack_decoder
=
{
.
name
=
"wavpack"
,
.
name
=
"wavpack"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
...
@@ -1197,6 +1206,7 @@ AVCodec ff_wavpack_decoder = {
...
@@ -1197,6 +1206,7 @@ AVCodec ff_wavpack_decoder = {
.
init
=
wavpack_decode_init
,
.
init
=
wavpack_decode_init
,
.
close
=
wavpack_decode_end
,
.
close
=
wavpack_decode_end
,
.
decode
=
wavpack_decode_frame
,
.
decode
=
wavpack_decode_frame
,
.
flush
=
wavpack_decode_flush
,
.
capabilities
=
CODEC_CAP_SUBFRAMES
,
.
capabilities
=
CODEC_CAP_SUBFRAMES
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"WavPack"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"WavPack"
),
};
};
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