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
c1848b08
Commit
c1848b08
authored
Jan 04, 2010
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use %4.4s instead of %4s for fourccs cast to char *.
parent
8435cb4d
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
22 additions
and
22 deletions
+22
-22
modules/access/v4l2.c
modules/access/v4l2.c
+3
-3
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+1
-1
modules/video_filter/adjust.c
modules/video_filter/adjust.c
+2
-2
modules/video_filter/alphamask.c
modules/video_filter/alphamask.c
+1
-1
modules/video_filter/ball.c
modules/video_filter/ball.c
+1
-1
modules/video_filter/bluescreen.c
modules/video_filter/bluescreen.c
+2
-2
modules/video_filter/colorthres.c
modules/video_filter/colorthres.c
+1
-1
modules/video_filter/erase.c
modules/video_filter/erase.c
+1
-1
modules/video_filter/extract.c
modules/video_filter/extract.c
+2
-2
modules/video_filter/gaussianblur.c
modules/video_filter/gaussianblur.c
+1
-1
modules/video_filter/gradient.c
modules/video_filter/gradient.c
+1
-1
modules/video_filter/grain.c
modules/video_filter/grain.c
+1
-1
modules/video_filter/motiondetect.c
modules/video_filter/motiondetect.c
+2
-2
modules/video_filter/postproc.c
modules/video_filter/postproc.c
+1
-1
modules/video_filter/rotate.c
modules/video_filter/rotate.c
+2
-2
No files found.
modules/access/v4l2.c
View file @
c1848b08
...
...
@@ -2219,7 +2219,7 @@ static int OpenVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys, bool b_demux )
char
psz_fourcc
[
5
];
memset
(
&
psz_fourcc
,
0
,
sizeof
(
psz_fourcc
)
);
vlc_fourcc_to_char
(
p_sys
->
i_fourcc
,
&
psz_fourcc
);
msg_Dbg
(
p_obj
,
"supported frame intervals for %4s, %dx%d:"
,
msg_Dbg
(
p_obj
,
"supported frame intervals for %4
.4
s, %dx%d:"
,
psz_fourcc
,
frmival
.
width
,
frmival
.
height
);
switch
(
frmival
.
type
)
{
...
...
@@ -2671,7 +2671,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
memset
(
&
psz_fourcc
,
0
,
sizeof
(
psz_fourcc
)
);
vlc_fourcc_to_char
(
v4l2chroma_to_fourcc
[
i
].
i_fourcc
,
&
psz_fourcc
);
msg_Dbg
(
p_obj
,
"device supports chroma %4s [%s, %s]"
,
msg_Dbg
(
p_obj
,
"device supports chroma %4
.4
s [%s, %s]"
,
psz_fourcc
,
p_sys
->
p_codecs
[
i_index
].
description
,
psz_fourcc_v4l2
);
...
...
@@ -2721,7 +2721,7 @@ static bool ProbeVideoDev( vlc_object_t *p_obj, demux_sys_t *p_sys,
if
(
!
b_codec_supported
)
{
msg_Dbg
(
p_obj
,
"device codec %4s (%s) not supported"
,
"device codec %4
.4
s (%s) not supported"
,
psz_fourcc_v4l2
,
p_sys
->
p_codecs
[
i_index
].
description
);
}
...
...
modules/codec/dvbsub.c
View file @
c1848b08
...
...
@@ -1972,7 +1972,7 @@ static block_t *Encode( encoder_t *p_enc, subpicture_t *p_subpic )
char
psz_fourcc
[
5
];
memset
(
&
psz_fourcc
,
0
,
sizeof
(
psz_fourcc
)
);
vlc_fourcc_to_char
(
p_region
->
fmt
.
i_chroma
,
&
psz_fourcc
);
msg_Err
(
p_enc
,
"chroma %4s not supported"
,
psz_fourcc
);
msg_Err
(
p_enc
,
"chroma %4
.4
s not supported"
,
psz_fourcc
);
return
NULL
;
}
...
...
modules/video_filter/adjust.c
View file @
c1848b08
...
...
@@ -142,7 +142,7 @@ static int Create( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
@@ -457,7 +457,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
if
(
GetPackedYuvOffsets
(
p_pic
->
format
.
i_chroma
,
&
i_y_offset
,
&
i_u_offset
,
&
i_v_offset
)
!=
VLC_SUCCESS
)
{
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
picture_Release
(
p_pic
);
...
...
modules/video_filter/alphamask.c
View file @
c1848b08
...
...
@@ -92,7 +92,7 @@ static int Create( vlc_object_t *p_this )
if
(
p_filter
->
fmt_in
.
video
.
i_chroma
!=
VLC_CODEC_YUVA
)
{
msg_Err
(
p_filter
,
"Unsupported input chroma
\"
%4s
\"
. "
"Unsupported input chroma
\"
%4
.4
s
\"
. "
"Alphamask can only use
\"
YUVA
\"
."
,
(
char
*
)
&
p_filter
->
fmt_in
.
video
.
i_chroma
);
return
VLC_EGENERIC
;
...
...
modules/video_filter/ball.c
View file @
c1848b08
...
...
@@ -254,7 +254,7 @@ static int Create( vlc_object_t *p_this )
COLORS_RGB
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
modules/video_filter/bluescreen.c
View file @
c1848b08
...
...
@@ -114,7 +114,7 @@ static int Create( vlc_object_t *p_this )
if
(
p_filter
->
fmt_in
.
video
.
i_chroma
!=
VLC_CODEC_YUVA
)
{
msg_Err
(
p_filter
,
"Unsupported input chroma
\"
%4s
\"
. "
"Unsupported input chroma
\"
%4
.4
s
\"
. "
"Bluescreen can only use
\"
YUVA
\"
."
,
(
char
*
)
&
p_filter
->
fmt_in
.
video
.
i_chroma
);
return
VLC_EGENERIC
;
...
...
@@ -179,7 +179,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
if
(
p_pic
->
format
.
i_chroma
!=
VLC_CODEC_YUVA
)
{
msg_Err
(
p_filter
,
"Unsupported input chroma
\"
%4s
\"
. "
"Unsupported input chroma
\"
%4
.4
s
\"
. "
"Bluescreen can only use
\"
YUVA
\"
."
,
(
char
*
)
&
p_pic
->
format
.
i_chroma
);
return
NULL
;
...
...
modules/video_filter/colorthres.c
View file @
c1848b08
...
...
@@ -119,7 +119,7 @@ static int Create( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
modules/video_filter/erase.c
View file @
c1848b08
...
...
@@ -142,7 +142,7 @@ static int Create( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
modules/video_filter/extract.c
View file @
c1848b08
...
...
@@ -118,7 +118,7 @@ static int Create( vlc_object_t *p_this )
default:
/* We only want planar YUV 4:2:0 or 4:2:2 */
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
@@ -242,7 +242,7 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
default:
vlc_mutex_unlock
(
&
p_sys
->
lock
);
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
picture_Release
(
p_pic
);
return
NULL
;
...
...
modules/video_filter/gaussianblur.c
View file @
c1848b08
...
...
@@ -135,7 +135,7 @@ static int Create( vlc_object_t *p_this )
)
{
/* We only want planar YUV 4:2:0 or 4:2:2 */
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
modules/video_filter/gradient.c
View file @
c1848b08
...
...
@@ -141,7 +141,7 @@ static int Create( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
modules/video_filter/grain.c
View file @
c1848b08
...
...
@@ -75,7 +75,7 @@ static int Create( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
modules/video_filter/motiondetect.c
View file @
c1848b08
...
...
@@ -103,7 +103,7 @@ static int Create( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_fmt
->
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
@@ -291,7 +291,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_inpic )
if
(
GetPackedYuvOffsets
(
p_fmt
->
i_chroma
,
&
i_y_offset
,
&
i_u_offset
,
&
i_v_offset
)
)
{
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
p_fmt
->
i_chroma
);
return
p_inpic
;
}
...
...
modules/video_filter/postproc.c
View file @
c1848b08
...
...
@@ -168,7 +168,7 @@ static int OpenPostproc( vlc_object_t *p_this )
i_flags
|=
PP_FORMAT_420
;
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
p_filter
->
fmt_in
.
video
.
i_chroma
);
return
VLC_EGENERIC
;
}
...
...
modules/video_filter/rotate.c
View file @
c1848b08
...
...
@@ -122,7 +122,7 @@ static int Create( vlc_object_t *p_this )
break
;
default:
msg_Err
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Err
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_filter
->
fmt_in
.
video
.
i_chroma
)
);
return
VLC_EGENERIC
;
}
...
...
@@ -302,7 +302,7 @@ static picture_t *FilterPacked( filter_t *p_filter, picture_t *p_pic )
if
(
GetPackedYuvOffsets
(
p_pic
->
format
.
i_chroma
,
&
i_y_offset
,
&
i_u_offset
,
&
i_v_offset
)
!=
VLC_SUCCESS
)
{
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4
.4
s)"
,
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
picture_Release
(
p_pic
);
return
NULL
;
...
...
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