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
20e081dd
Commit
20e081dd
authored
Oct 28, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libgsm: add flush function to reset the decoder state when seeking
parent
480324e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
libgsm.c
libavcodec/libgsm.c
+7
-0
No files found.
libavcodec/libgsm.c
View file @
20e081dd
...
@@ -194,6 +194,11 @@ static int libgsm_decode_frame(AVCodecContext *avctx,
...
@@ -194,6 +194,11 @@ static int libgsm_decode_frame(AVCodecContext *avctx,
return
avctx
->
block_align
;
return
avctx
->
block_align
;
}
}
static
void
libgsm_flush
(
AVCodecContext
*
avctx
)
{
gsm_destroy
(
avctx
->
priv_data
);
avctx
->
priv_data
=
gsm_create
();
}
AVCodec
ff_libgsm_decoder
=
{
AVCodec
ff_libgsm_decoder
=
{
.
name
=
"libgsm"
,
.
name
=
"libgsm"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
...
@@ -201,6 +206,7 @@ AVCodec ff_libgsm_decoder = {
...
@@ -201,6 +206,7 @@ AVCodec ff_libgsm_decoder = {
.
init
=
libgsm_decode_init
,
.
init
=
libgsm_decode_init
,
.
close
=
libgsm_decode_close
,
.
close
=
libgsm_decode_close
,
.
decode
=
libgsm_decode_frame
,
.
decode
=
libgsm_decode_frame
,
.
flush
=
libgsm_flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"libgsm GSM"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"libgsm GSM"
),
};
};
...
@@ -211,5 +217,6 @@ AVCodec ff_libgsm_ms_decoder = {
...
@@ -211,5 +217,6 @@ AVCodec ff_libgsm_ms_decoder = {
.
init
=
libgsm_decode_init
,
.
init
=
libgsm_decode_init
,
.
close
=
libgsm_decode_close
,
.
close
=
libgsm_decode_close
,
.
decode
=
libgsm_decode_frame
,
.
decode
=
libgsm_decode_frame
,
.
flush
=
libgsm_flush
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"libgsm GSM Microsoft variant"
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"libgsm GSM Microsoft variant"
),
};
};
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