Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mark Harris
Opus
Commits
8fec416b
Unverified
Commit
8fec416b
authored
Oct 31, 2016
by
Felicia Lim
Committed by
Jean-Marc Valin
Oct 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix amount of extra bytes reserved for 100 ms
Signed-off-by:
Jean-Marc Valin
<
jmvalin@jmvalin.ca
>
parent
7e122394
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/opus_multistream_encoder.c
src/opus_multistream_encoder.c
+2
-2
No files found.
src/opus_multistream_encoder.c
View file @
8fec416b
...
...
@@ -1039,9 +1039,9 @@ static int opus_multistream_encode_native
curr_max
=
max_data_bytes
-
tot_size
;
/* Reserve one byte for the last stream and two for the others */
curr_max
-=
IMAX
(
0
,
2
*
(
st
->
layout
.
nb_streams
-
s
-
1
)
-
1
);
/* For 100 ms, reserve an extra byte per stream for the To
c
*/
/* For 100 ms, reserve an extra byte per stream for the To
C
*/
if
(
Fs
/
frame_size
==
10
)
curr_max
-=
st
->
layout
.
nb_streams
-
s
;
curr_max
-=
st
->
layout
.
nb_streams
-
s
-
1
;
curr_max
=
IMIN
(
curr_max
,
MS_FRAME_TMP
);
/* Repacketizer will add one or two bytes for self-delimited frames */
if
(
s
!=
st
->
layout
.
nb_streams
-
1
)
curr_max
-=
curr_max
>
253
?
2
:
1
;
...
...
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