Changeset eb6c45093a933c68bcedfb4e75a7185ccf1dded9

Show
Ignore:
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
  • src/input/decoder.c

    r9d3b03d reb6c450  
    66 * 
    77 * Authors: Christophe Massiot <massiot@via.ecp.fr> 
    8  *          Gildas Bazin <gbazin@netcourrier.com
     8 *          Gildas Bazin <gbazin@videolan.org
    99 *          Laurent Aimar <fenrir@via.ecp.fr> 
    1010 * 
     
    504504static int DecoderDecode( decoder_t *p_dec, block_t *p_block ) 
    505505{ 
     506    int i_rate = p_block->i_rate; 
     507 
    506508    if( p_block->i_buffer <= 0 ) 
    507509    { 
     
    520522                es_format_Copy( &p_dec->p_owner->sout, &p_dec->fmt_out ); 
    521523 
    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; 
    523525                p_dec->p_owner->sout.i_id = p_dec->fmt_in.i_id; 
    524526                if( p_dec->fmt_in.psz_language ) 
     
    549551            while( p_sout_block ) 
    550552            { 
    551                 block_t       *p_next = p_sout_block->p_next; 
     553                block_t *p_next = p_sout_block->p_next; 
    552554 
    553555                p_sout_block->p_next = NULL; 
     556                p_sout_block->i_rate = i_rate; 
    554557 
    555558                sout_InputSendBuffer( p_dec->p_owner->p_sout_input, 
     
    590593                    block_t *p_next = p_packetized_block->p_next; 
    591594                    p_packetized_block->p_next = NULL; 
     595                    p_packetized_block->i_rate = i_rate; 
    592596 
    593597                    while( (p_aout_buf = p_dec->pf_decode_audio( p_dec, 
     
    625629                    block_t *p_next = p_packetized_block->p_next; 
    626630                    p_packetized_block->p_next = NULL; 
     631                    p_packetized_block->i_rate = i_rate; 
    627632 
    628633                    while( (p_pic = p_dec->pf_decode_video( p_dec,