Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d34e1a85
Commit
d34e1a85
authored
Jul 02, 2008
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When deleting track, reduce stream bitrate too, unless bitrate is
defined from commandline.
parent
a781fc4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
modules/mux/asf.c
modules/mux/asf.c
+21
-1
No files found.
modules/mux/asf.c
View file @
d34e1a85
...
...
@@ -597,7 +597,27 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
*****************************************************************************/
static
int
DelStream
(
sout_mux_t
*
p_mux
,
sout_input_t
*
p_input
)
{
VLC_UNUSED
(
p_input
);
/* if bitrate ain't defined in commanline, reduce it when tracks are deleted
*/
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
asf_track_t
*
tk
=
p_input
->
p_sys
;
if
(
!
p_sys
->
i_bitrate_override
)
{
if
(
tk
->
i_cat
==
AUDIO_ES
)
{
if
(
p_input
->
p_fmt
->
i_bitrate
>
24000
)
p_sys
->
i_bitrate
-=
p_input
->
p_fmt
->
i_bitrate
;
else
p_sys
->
i_bitrate
-=
512000
;
}
else
if
(
tk
->
i_cat
==
VIDEO_ES
)
{
if
(
p_input
->
p_fmt
->
i_bitrate
>
50000
)
p_sys
->
i_bitrate
-=
p_input
->
p_fmt
->
i_bitrate
;
else
p_sys
->
i_bitrate
-=
1000000
;
}
}
msg_Dbg
(
p_mux
,
"removing input"
);
return
VLC_SUCCESS
;
}
...
...
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