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
19adb0bc
Commit
19adb0bc
authored
Jan 24, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vorbisdec: add a flush() function
clear MDCT overlap buffer and reset previous window mode when seeking
parent
830f7044
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
vorbisdec.c
libavcodec/vorbisdec.c
+12
-0
No files found.
libavcodec/vorbisdec.c
View file @
19adb0bc
...
...
@@ -1698,6 +1698,17 @@ static av_cold int vorbis_decode_close(AVCodecContext *avccontext)
return
0
;
}
static
av_cold
void
vorbis_decode_flush
(
AVCodecContext
*
avccontext
)
{
vorbis_context
*
vc
=
avccontext
->
priv_data
;
if
(
vc
->
saved
)
{
memset
(
vc
->
saved
,
0
,
(
vc
->
blocksize
[
1
]
/
4
)
*
vc
->
audio_channels
*
sizeof
(
*
vc
->
saved
));
}
vc
->
previous_window
=
0
;
}
AVCodec
ff_vorbis_decoder
=
{
.
name
=
"vorbis"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
...
...
@@ -1706,6 +1717,7 @@ AVCodec ff_vorbis_decoder = {
.
init
=
vorbis_decode_init
,
.
close
=
vorbis_decode_close
,
.
decode
=
vorbis_decode_frame
,
.
flush
=
vorbis_decode_flush
,
.
capabilities
=
CODEC_CAP_DR1
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"Vorbis"
),
.
channel_layouts
=
ff_vorbis_channel_layouts
,
...
...
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