Changeset d34e1a85ea38816ca5083082be88b803e5bf580d
- Timestamp:
- 02/07/08 22:30:13
(3 months ago)
- Author:
- Ilkka Ollakka <ileoo@videolan.org>
- git-committer:
- Ilkka Ollakka <ileoo@videolan.org> 1215030613 +0300
- git-parent:
[a781fc4b3ca3a5342a7ada41545b58ab928f4f8d]
- git-author:
- Ilkka Ollakka <ileoo@videolan.org> 1215030613 +0300
- Message:
When deleting track, reduce stream bitrate too, unless bitrate is
defined from commandline.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7c3c449 |
rd34e1a8 |
|
| 598 | 598 | static int DelStream( sout_mux_t *p_mux, sout_input_t *p_input ) |
|---|
| 599 | 599 | { |
|---|
| 600 | | VLC_UNUSED(p_input); |
|---|
| | 600 | /* if bitrate ain't defined in commanline, reduce it when tracks are deleted |
|---|
| | 601 | */ |
|---|
| | 602 | sout_mux_sys_t *p_sys = p_mux->p_sys; |
|---|
| | 603 | asf_track_t *tk = p_input->p_sys; |
|---|
| | 604 | if(!p_sys->i_bitrate_override) |
|---|
| | 605 | { |
|---|
| | 606 | if( tk->i_cat == AUDIO_ES ) |
|---|
| | 607 | { |
|---|
| | 608 | if( p_input->p_fmt->i_bitrate > 24000 ) |
|---|
| | 609 | p_sys->i_bitrate -= p_input->p_fmt->i_bitrate; |
|---|
| | 610 | else |
|---|
| | 611 | p_sys->i_bitrate -= 512000; |
|---|
| | 612 | } |
|---|
| | 613 | else if(tk->i_cat == VIDEO_ES ) |
|---|
| | 614 | { |
|---|
| | 615 | if( p_input->p_fmt->i_bitrate > 50000 ) |
|---|
| | 616 | p_sys->i_bitrate -= p_input->p_fmt->i_bitrate; |
|---|
| | 617 | else |
|---|
| | 618 | p_sys->i_bitrate -= 1000000; |
|---|
| | 619 | } |
|---|
| | 620 | } |
|---|
| 601 | 621 | msg_Dbg( p_mux, "removing input" ); |
|---|
| 602 | 622 | return VLC_SUCCESS; |
|---|