Changeset 213ebf55974f760b0fa3f16bbf81bed1d1bbfd20

Show
Ignore:
Timestamp:
06/18/08 12:41:38 (3 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1213785698 +0200
git-parent:

[a51138ae60bcc527d7a1aa135817f317d4def011]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1213722796 +0200
Message:

Fix uninitialized pointer use.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/stream_out/transcode.c

    r3c5c046 r213ebf5  
    11281128} 
    11291129 
    1130 static block_t *transcode_audio_alloc( filter_t *filter, int size ) 
    1131 
    1132     return block_New( filter, size ); 
     1130static block_t *transcode_audio_alloc( filter_t *p_filter, int size ) 
     1131
     1132    VLC_UNUSED( p_filter ); 
     1133    return block_Alloc( size ); 
    11331134} 
    11341135 
     
    19992000        { 
    20002001            int i_scale_width, i_scale_height; 
    2001             video_format_t *p_fmt; 
     2002            video_format_t fmt; 
    20022003 
    20032004            i_scale_width = id->p_encoder->fmt_in.video.i_width * 1000 / 
     
    20182019            } 
    20192020 
    2020             *p_fmt = filter_chain_GetFmtOut( id->p_f_chain )->video; 
     2021            fmt = filter_chain_GetFmtOut( id->p_f_chain )->video; 
    20212022 
    20222023            /* FIXME (shouldn't have to be done here) */ 
    2023             p_fmt->i_sar_num = p_fmt->i_aspect * 
    2024                 p_fmt->i_height / p_fmt->i_width; 
    2025             p_fmt->i_sar_den = VOUT_ASPECT_FACTOR; 
    2026  
    2027             spu_RenderSubpictures( p_sys->p_spu, p_fmt, p_pic, p_pic, p_subpic, 
     2024            fmt.i_sar_num = fmt.i_aspect * fmt.i_height / fmt.i_width; 
     2025            fmt.i_sar_den = VOUT_ASPECT_FACTOR; 
     2026 
     2027            spu_RenderSubpictures( p_sys->p_spu, &fmt, p_pic, p_pic, p_subpic, 
    20282028                                   i_scale_width, i_scale_height ); 
    20292029        }