Changeset eb6c45093a933c68bcedfb4e75a7185ccf1dded9
- Timestamp:
- 26/08/04 21:19:08
(4 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1093547948 +0000
- git-parent:
[548753b8d4ff0587b8d9256c4a28be46b0edc0bb]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1093547948 +0000
- Message:
* src/input/decoder.c: forward the p_block->i_rate info when required (fixes libmpeg2 decoding in the display stream output module).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r9d3b03d |
reb6c450 |
|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| 8 | | * Gildas Bazin <gbazin@netcourrier.com> |
|---|
| | 8 | * Gildas Bazin <gbazin@videolan.org> |
|---|
| 9 | 9 | * Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| 10 | 10 | * |
|---|
| … | … | |
| 504 | 504 | static int DecoderDecode( decoder_t *p_dec, block_t *p_block ) |
|---|
| 505 | 505 | { |
|---|
| | 506 | int i_rate = p_block->i_rate; |
|---|
| | 507 | |
|---|
| 506 | 508 | if( p_block->i_buffer <= 0 ) |
|---|
| 507 | 509 | { |
|---|
| … | … | |
| 520 | 522 | es_format_Copy( &p_dec->p_owner->sout, &p_dec->fmt_out ); |
|---|
| 521 | 523 | |
|---|
| 522 | | p_dec->p_owner->sout.i_group =p_dec->fmt_in.i_group; |
|---|
| | 524 | p_dec->p_owner->sout.i_group = p_dec->fmt_in.i_group; |
|---|
| 523 | 525 | p_dec->p_owner->sout.i_id = p_dec->fmt_in.i_id; |
|---|
| 524 | 526 | if( p_dec->fmt_in.psz_language ) |
|---|
| … | … | |
| 549 | 551 | while( p_sout_block ) |
|---|
| 550 | 552 | { |
|---|
| 551 | | block_t *p_next = p_sout_block->p_next; |
|---|
| | 553 | block_t *p_next = p_sout_block->p_next; |
|---|
| 552 | 554 | |
|---|
| 553 | 555 | p_sout_block->p_next = NULL; |
|---|
| | 556 | p_sout_block->i_rate = i_rate; |
|---|
| 554 | 557 | |
|---|
| 555 | 558 | sout_InputSendBuffer( p_dec->p_owner->p_sout_input, |
|---|
| … | … | |
| 590 | 593 | block_t *p_next = p_packetized_block->p_next; |
|---|
| 591 | 594 | p_packetized_block->p_next = NULL; |
|---|
| | 595 | p_packetized_block->i_rate = i_rate; |
|---|
| 592 | 596 | |
|---|
| 593 | 597 | while( (p_aout_buf = p_dec->pf_decode_audio( p_dec, |
|---|
| … | … | |
| 625 | 629 | block_t *p_next = p_packetized_block->p_next; |
|---|
| 626 | 630 | p_packetized_block->p_next = NULL; |
|---|
| | 631 | p_packetized_block->i_rate = i_rate; |
|---|
| 627 | 632 | |
|---|
| 628 | 633 | while( (p_pic = p_dec->pf_decode_video( p_dec, |
|---|