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
730280f9
Commit
730280f9
authored
Jan 03, 2012
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adxdec: clear eof flag and channel states when seeking
parent
3e57573f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
adxdec.c
libavcodec/adxdec.c
+8
-0
No files found.
libavcodec/adxdec.c
View file @
730280f9
...
...
@@ -165,6 +165,13 @@ static int adx_decode_frame(AVCodecContext *avctx, void *data,
return
buf
-
avpkt
->
data
;
}
static
void
adx_decode_flush
(
AVCodecContext
*
avctx
)
{
ADXContext
*
c
=
avctx
->
priv_data
;
memset
(
c
->
prev
,
0
,
sizeof
(
c
->
prev
));
c
->
eof
=
0
;
}
AVCodec
ff_adpcm_adx_decoder
=
{
.
name
=
"adpcm_adx"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
...
...
@@ -172,6 +179,7 @@ AVCodec ff_adpcm_adx_decoder = {
.
priv_data_size
=
sizeof
(
ADXContext
),
.
init
=
adx_decode_init
,
.
decode
=
adx_decode_frame
,
.
flush
=
adx_decode_flush
,
.
capabilities
=
CODEC_CAP_DR1
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"SEGA CRI ADX ADPCM"
),
};
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