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
da249637
Commit
da249637
authored
Oct 28, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g726dec: add flush() function to reset state when seeking
parent
97f5dd1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
g726.c
libavcodec/g726.c
+7
-0
No files found.
libavcodec/g726.c
View file @
da249637
...
@@ -460,6 +460,12 @@ static int g726_decode_frame(AVCodecContext *avctx,
...
@@ -460,6 +460,12 @@ static int g726_decode_frame(AVCodecContext *avctx,
return
buf_size
;
return
buf_size
;
}
}
static
void
g726_decode_flush
(
AVCodecContext
*
avctx
)
{
G726Context
*
c
=
avctx
->
priv_data
;
g726_reset
(
c
);
}
AVCodec
ff_adpcm_g726_decoder
=
{
AVCodec
ff_adpcm_g726_decoder
=
{
.
name
=
"g726"
,
.
name
=
"g726"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
...
@@ -467,6 +473,7 @@ AVCodec ff_adpcm_g726_decoder = {
...
@@ -467,6 +473,7 @@ AVCodec ff_adpcm_g726_decoder = {
.
priv_data_size
=
sizeof
(
G726Context
),
.
priv_data_size
=
sizeof
(
G726Context
),
.
init
=
g726_decode_init
,
.
init
=
g726_decode_init
,
.
decode
=
g726_decode_frame
,
.
decode
=
g726_decode_frame
,
.
flush
=
g726_decode_flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"G.726 ADPCM"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"G.726 ADPCM"
),
};
};
#endif
#endif
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