Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
213ebf55
Commit
213ebf55
authored
Jun 17, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix uninitialized pointer use.
parent
a51138ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+8
-8
No files found.
modules/stream_out/transcode.c
View file @
213ebf55
...
@@ -1127,9 +1127,10 @@ static int audio_BitsPerSample( vlc_fourcc_t i_format )
...
@@ -1127,9 +1127,10 @@ static int audio_BitsPerSample( vlc_fourcc_t i_format )
return
0
;
return
0
;
}
}
static
block_t
*
transcode_audio_alloc
(
filter_t
*
filter
,
int
size
)
static
block_t
*
transcode_audio_alloc
(
filter_t
*
p_
filter
,
int
size
)
{
{
return
block_New
(
filter
,
size
);
VLC_UNUSED
(
p_filter
);
return
block_Alloc
(
size
);
}
}
static
int
transcode_audio_filter_allocation_init
(
filter_t
*
p_filter
,
static
int
transcode_audio_filter_allocation_init
(
filter_t
*
p_filter
,
...
@@ -1998,7 +1999,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
...
@@ -1998,7 +1999,7 @@ static int transcode_video_process( sout_stream_t *p_stream,
if
(
p_subpic
)
if
(
p_subpic
)
{
{
int
i_scale_width
,
i_scale_height
;
int
i_scale_width
,
i_scale_height
;
video_format_t
*
p_
fmt
;
video_format_t
fmt
;
i_scale_width
=
id
->
p_encoder
->
fmt_in
.
video
.
i_width
*
1000
/
i_scale_width
=
id
->
p_encoder
->
fmt_in
.
video
.
i_width
*
1000
/
id
->
p_decoder
->
fmt_out
.
video
.
i_width
;
id
->
p_decoder
->
fmt_out
.
video
.
i_width
;
...
@@ -2017,14 +2018,13 @@ static int transcode_video_process( sout_stream_t *p_stream,
...
@@ -2017,14 +2018,13 @@ static int transcode_video_process( sout_stream_t *p_stream,
}
}
}
}
*
p_
fmt
=
filter_chain_GetFmtOut
(
id
->
p_f_chain
)
->
video
;
fmt
=
filter_chain_GetFmtOut
(
id
->
p_f_chain
)
->
video
;
/* FIXME (shouldn't have to be done here) */
/* FIXME (shouldn't have to be done here) */
p_fmt
->
i_sar_num
=
p_fmt
->
i_aspect
*
fmt
.
i_sar_num
=
fmt
.
i_aspect
*
fmt
.
i_height
/
fmt
.
i_width
;
p_fmt
->
i_height
/
p_fmt
->
i_width
;
fmt
.
i_sar_den
=
VOUT_ASPECT_FACTOR
;
p_fmt
->
i_sar_den
=
VOUT_ASPECT_FACTOR
;
spu_RenderSubpictures
(
p_sys
->
p_spu
,
p_
fmt
,
p_pic
,
p_pic
,
p_subpic
,
spu_RenderSubpictures
(
p_sys
->
p_spu
,
&
fmt
,
p_pic
,
p_pic
,
p_subpic
,
i_scale_width
,
i_scale_height
);
i_scale_width
,
i_scale_height
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment