Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
94cc428d
Commit
94cc428d
authored
May 16, 2007
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix another bunch of: (near initialization for `fmt.i_aspect') warnings.
parent
b7621186
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
9 deletions
+20
-9
modules/video_filter/clone.c
modules/video_filter/clone.c
+2
-1
modules/video_filter/crop.c
modules/video_filter/crop.c
+6
-3
modules/video_filter/logo.c
modules/video_filter/logo.c
+7
-3
modules/video_filter/transform.c
modules/video_filter/transform.c
+2
-1
modules/video_filter/wall.c
modules/video_filter/wall.c
+3
-1
No files found.
modules/video_filter/clone.c
View file @
94cc428d
...
@@ -217,9 +217,10 @@ static int Init( vout_thread_t *p_vout )
...
@@ -217,9 +217,10 @@ static int Init( vout_thread_t *p_vout )
int
i_index
,
i_vout
;
int
i_index
,
i_vout
;
picture_t
*
p_pic
;
picture_t
*
p_pic
;
char
*
psz_default_vout
;
char
*
psz_default_vout
;
video_format_t
fmt
=
{
0
}
;
video_format_t
fmt
;
I_OUTPUTPICTURES
=
0
;
I_OUTPUTPICTURES
=
0
;
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
/* Initialize the output structure */
/* Initialize the output structure */
p_vout
->
output
.
i_chroma
=
p_vout
->
render
.
i_chroma
;
p_vout
->
output
.
i_chroma
=
p_vout
->
render
.
i_chroma
;
...
...
modules/video_filter/crop.c
View file @
94cc428d
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
#define BEST_AUTOCROP 1
#define BEST_AUTOCROP 1
#ifdef BEST_AUTOCROP
#ifdef BEST_AUTOCROP
#define RATIO_MAX 15000 // 10*4/3 for a 360
#define RATIO_MAX 15000 // 10*4/3 for a 360
#endif
#endif
/*****************************************************************************
/*****************************************************************************
...
@@ -203,9 +203,10 @@ static int Init( vout_thread_t *p_vout )
...
@@ -203,9 +203,10 @@ static int Init( vout_thread_t *p_vout )
int
i_index
;
int
i_index
;
char
*
psz_var
;
char
*
psz_var
;
picture_t
*
p_pic
;
picture_t
*
p_pic
;
video_format_t
fmt
=
{
0
}
;
video_format_t
fmt
;
I_OUTPUTPICTURES
=
0
;
I_OUTPUTPICTURES
=
0
;
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
p_vout
->
p_sys
->
i_lastchange
=
0
;
p_vout
->
p_sys
->
i_lastchange
=
0
;
p_vout
->
p_sys
->
b_changed
=
VLC_FALSE
;
p_vout
->
p_sys
->
b_changed
=
VLC_FALSE
;
...
@@ -436,13 +437,15 @@ static void Destroy( vlc_object_t *p_this )
...
@@ -436,13 +437,15 @@ static void Destroy( vlc_object_t *p_this )
*****************************************************************************/
*****************************************************************************/
static
int
Manage
(
vout_thread_t
*
p_vout
)
static
int
Manage
(
vout_thread_t
*
p_vout
)
{
{
video_format_t
fmt
=
{
0
}
;
video_format_t
fmt
;
if
(
!
p_vout
->
p_sys
->
b_changed
)
if
(
!
p_vout
->
p_sys
->
b_changed
)
{
{
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
#ifdef BEST_AUTOCROP
#ifdef BEST_AUTOCROP
msg_Dbg
(
p_vout
,
"cropping at %ix%i+%i+%i, %sautocropping"
,
msg_Dbg
(
p_vout
,
"cropping at %ix%i+%i+%i, %sautocropping"
,
p_vout
->
p_sys
->
i_width
,
p_vout
->
p_sys
->
i_height
,
p_vout
->
p_sys
->
i_width
,
p_vout
->
p_sys
->
i_height
,
...
...
modules/video_filter/logo.c
View file @
94cc428d
...
@@ -171,7 +171,11 @@ static picture_t *LoadImage( vlc_object_t *p_this, char *psz_filename )
...
@@ -171,7 +171,11 @@ static picture_t *LoadImage( vlc_object_t *p_this, char *psz_filename )
{
{
picture_t
*
p_pic
;
picture_t
*
p_pic
;
image_handler_t
*
p_image
;
image_handler_t
*
p_image
;
video_format_t
fmt_in
=
{
0
},
fmt_out
=
{
0
};
video_format_t
fmt_in
;
video_format_t
fmt_out
;
memset
(
&
fmt_in
,
0
,
sizeof
(
video_format_t
)
);
memset
(
&
fmt_out
,
0
,
sizeof
(
video_format_t
)
);
fmt_out
.
i_chroma
=
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'A'
);
fmt_out
.
i_chroma
=
VLC_FOURCC
(
'Y'
,
'U'
,
'V'
,
'A'
);
p_image
=
image_HandlerCreate
(
p_this
);
p_image
=
image_HandlerCreate
(
p_this
);
...
@@ -361,11 +365,11 @@ static int Init( vout_thread_t *p_vout )
...
@@ -361,11 +365,11 @@ static int Init( vout_thread_t *p_vout )
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
picture_t
*
p_pic
;
picture_t
*
p_pic
;
int
i_index
;
int
i_index
;
video_format_t
fmt
=
{
0
};
video_format_t
fmt
;
logo_list_t
*
p_logo_list
=
p_sys
->
p_logo_list
;
logo_list_t
*
p_logo_list
=
p_sys
->
p_logo_list
;
I_OUTPUTPICTURES
=
0
;
I_OUTPUTPICTURES
=
0
;
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
/* adjust index to the next logo */
/* adjust index to the next logo */
p_logo_list
->
i_counter
=
p_logo_list
->
i_counter
=
...
...
modules/video_filter/transform.c
View file @
94cc428d
...
@@ -189,9 +189,10 @@ static int Init( vout_thread_t *p_vout )
...
@@ -189,9 +189,10 @@ static int Init( vout_thread_t *p_vout )
{
{
int
i_index
;
int
i_index
;
picture_t
*
p_pic
;
picture_t
*
p_pic
;
video_format_t
fmt
=
{
0
}
;
video_format_t
fmt
;
I_OUTPUTPICTURES
=
0
;
I_OUTPUTPICTURES
=
0
;
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
/* Initialize the output structure */
/* Initialize the output structure */
p_vout
->
output
.
i_chroma
=
p_vout
->
render
.
i_chroma
;
p_vout
->
output
.
i_chroma
=
p_vout
->
render
.
i_chroma
;
...
...
modules/video_filter/wall.c
View file @
94cc428d
...
@@ -241,7 +241,7 @@ static int Init( vout_thread_t *p_vout )
...
@@ -241,7 +241,7 @@ static int Init( vout_thread_t *p_vout )
int
i_index
,
i_row
,
i_col
,
i_width
,
i_height
,
i_left
,
i_top
;
int
i_index
,
i_row
,
i_col
,
i_width
,
i_height
,
i_left
,
i_top
;
unsigned
int
i_target_width
,
i_target_height
;
unsigned
int
i_target_width
,
i_target_height
;
picture_t
*
p_pic
;
picture_t
*
p_pic
;
video_format_t
fmt
=
{
0
}
;
video_format_t
fmt
;
int
i_aspect
=
4
*
VOUT_ASPECT_FACTOR
/
3
;
int
i_aspect
=
4
*
VOUT_ASPECT_FACTOR
/
3
;
int
i_align
=
0
;
int
i_align
=
0
;
unsigned
int
i_hstart
,
i_hend
,
i_vstart
,
i_vend
;
unsigned
int
i_hstart
,
i_hend
,
i_vstart
,
i_vend
;
...
@@ -250,6 +250,8 @@ static int Init( vout_thread_t *p_vout )
...
@@ -250,6 +250,8 @@ static int Init( vout_thread_t *p_vout )
int
i_vstart_rounded
=
0
,
i_hstart_rounded
=
0
;
int
i_vstart_rounded
=
0
,
i_hstart_rounded
=
0
;
char
*
psz_aspect
;
char
*
psz_aspect
;
memset
(
&
fmt
,
0
,
sizeof
(
video_format_t
)
);
psz_aspect
=
var_CreateGetNonEmptyString
(
p_vout
,
psz_aspect
=
var_CreateGetNonEmptyString
(
p_vout
,
CFG_PREFIX
"element-aspect"
);
CFG_PREFIX
"element-aspect"
);
if
(
psz_aspect
&&
*
psz_aspect
)
if
(
psz_aspect
&&
*
psz_aspect
)
...
...
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