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
0c7bc7eb
Commit
0c7bc7eb
authored
Apr 11, 2018
by
Vishwanath Dixit
Committed by
Karthick Jeyapal
Apr 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dashenc: addition of muxer overhead in master playlist's bandwidth
parent
85ae55ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
dashenc.c
libavformat/dashenc.c
+5
-2
No files found.
libavformat/dashenc.c
View file @
0c7bc7eb
...
...
@@ -827,20 +827,23 @@ static int write_manifest(AVFormatContext *s, int final)
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
char
playlist_file
[
64
];
AVStream
*
st
=
s
->
streams
[
i
];
OutputStream
*
os
=
&
c
->
streams
[
i
];
if
(
st
->
codecpar
->
codec_type
!=
AVMEDIA_TYPE_AUDIO
)
continue
;
get_hls_playlist_name
(
playlist_file
,
sizeof
(
playlist_file
),
NULL
,
i
);
ff_hls_write_audio_rendition
(
out
,
(
char
*
)
audio_group
,
playlist_file
,
i
,
is_default
);
max_audio_bitrate
=
FFMAX
(
st
->
codecpar
->
bit_rate
,
max_audio_bitrate
);
max_audio_bitrate
=
FFMAX
(
st
->
codecpar
->
bit_rate
+
os
->
muxer_overhead
,
max_audio_bitrate
);
is_default
=
0
;
}
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
char
playlist_file
[
64
];
AVStream
*
st
=
s
->
streams
[
i
];
OutputStream
*
os
=
&
c
->
streams
[
i
];
char
*
agroup
=
NULL
;
int
stream_bitrate
=
st
->
codecpar
->
bit_rate
;
int
stream_bitrate
=
st
->
codecpar
->
bit_rate
+
os
->
muxer_overhead
;
if
((
st
->
codecpar
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
&&
max_audio_bitrate
)
{
agroup
=
(
char
*
)
audio_group
;
stream_bitrate
+=
max_audio_bitrate
;
...
...
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