Changeset 213ebf55974f760b0fa3f16bbf81bed1d1bbfd20
- 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
| r3c5c046 |
r213ebf5 |
|
| 1128 | 1128 | } |
|---|
| 1129 | 1129 | |
|---|
| 1130 | | static block_t *transcode_audio_alloc( filter_t *filter, int size ) |
|---|
| 1131 | | { |
|---|
| 1132 | | return block_New( filter, size ); |
|---|
| | 1130 | static block_t *transcode_audio_alloc( filter_t *p_filter, int size ) |
|---|
| | 1131 | { |
|---|
| | 1132 | VLC_UNUSED( p_filter ); |
|---|
| | 1133 | return block_Alloc( size ); |
|---|
| 1133 | 1134 | } |
|---|
| 1134 | 1135 | |
|---|
| … | … | |
| 1999 | 2000 | { |
|---|
| 2000 | 2001 | int i_scale_width, i_scale_height; |
|---|
| 2001 | | video_format_t *p_fmt; |
|---|
| | 2002 | video_format_t fmt; |
|---|
| 2002 | 2003 | |
|---|
| 2003 | 2004 | i_scale_width = id->p_encoder->fmt_in.video.i_width * 1000 / |
|---|
| … | … | |
| 2018 | 2019 | } |
|---|
| 2019 | 2020 | |
|---|
| 2020 | | *p_fmt = filter_chain_GetFmtOut( id->p_f_chain )->video; |
|---|
| | 2021 | fmt = filter_chain_GetFmtOut( id->p_f_chain )->video; |
|---|
| 2021 | 2022 | |
|---|
| 2022 | 2023 | /* 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, |
|---|
| 2028 | 2028 | i_scale_width, i_scale_height ); |
|---|
| 2029 | 2029 | } |
|---|