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
50cad256
Commit
50cad256
authored
Jun 11, 2009
by
Vladimir Voroshilov
Committed by
Michael Niedermayer
Sep 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Frame erasure support for pitch delay decoding
parent
d1a643e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
g729dec.c
libavcodec/g729dec.c
+6
-1
No files found.
libavcodec/g729dec.c
View file @
50cad256
...
...
@@ -306,7 +306,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
gc_1st_index
=
get_bits
(
&
gb
,
format
.
gc_1st_index_bits
);
gc_2nd_index
=
get_bits
(
&
gb
,
format
.
gc_2nd_index_bits
);
if
(
!
i
)
{
if
(
frame_erasure
)
pitch_delay_3x
=
3
*
ctx
->
pitch_delay_int_prev
;
else
if
(
!
i
)
{
if
(
bad_pitch
)
pitch_delay_3x
=
3
*
ctx
->
pitch_delay_int_prev
;
else
...
...
@@ -348,6 +350,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
(
voicing
&&
frame_erasure
)
?
0
:
ctx
->
gain_code
,
1
<<
13
,
14
,
SUBFRAME_SIZE
);
if
(
frame_erasure
)
ctx
->
pitch_delay_int_prev
=
FFMIN
(
ctx
->
pitch_delay_int_prev
+
1
,
PITCH_DELAY_MAX
);
else
ctx
->
pitch_delay_int_prev
=
pitch_delay_int
;
}
...
...
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