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
cb8db642
Commit
cb8db642
authored
Nov 26, 2011
by
kaptnole
Committed by
Michael Niedermayer
Nov 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aacdec: Fix Sound fragments after seeking
Fixes Ticket420 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
8f37c8f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
aacdec.c
libavcodec/aacdec.c
+18
-0
No files found.
libavcodec/aacdec.c
View file @
cb8db642
...
...
@@ -262,6 +262,23 @@ static av_cold int output_configure(AACContext *ac,
return
0
;
}
static
void
flush
(
AVCodecContext
*
avctx
)
{
AACContext
*
ac
=
avctx
->
priv_data
;
int
type
,
i
,
j
;
for
(
type
=
3
;
type
>=
0
;
type
--
)
{
for
(
i
=
0
;
i
<
MAX_ELEM_ID
;
i
++
)
{
ChannelElement
*
che
=
ac
->
che
[
type
][
i
];
if
(
che
)
{
for
(
j
=
0
;
j
<=
1
;
j
++
)
{
memset
(
che
->
ch
[
j
].
saved
,
0
,
sizeof
(
che
->
ch
[
j
].
saved
));
}
}
}
}
}
/**
* Decode an array of 4 bit element IDs, optionally interleaved with a stereo/mono switching bit.
*
...
...
@@ -2589,4 +2606,5 @@ AVCodec ff_aac_latm_decoder = {
},
.
capabilities
=
CODEC_CAP_CHANNEL_CONF
,
.
channel_layouts
=
aac_channel_layout
,
.
flush
=
flush
,
};
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