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
982c2c89
Commit
982c2c89
authored
Aug 03, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bunch of warnings and errors
parent
2d824acd
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
22 additions
and
24 deletions
+22
-24
modules/control/http/macro.c
modules/control/http/macro.c
+1
-1
modules/control/http/rpn.c
modules/control/http/rpn.c
+3
-3
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+9
-8
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+4
-4
modules/demux/playlist/dvb.c
modules/demux/playlist/dvb.c
+0
-1
modules/demux/playlist/gvp.c
modules/demux/playlist/gvp.c
+0
-1
modules/demux/playlist/shoutcast.c
modules/demux/playlist/shoutcast.c
+0
-1
modules/misc/freetype.c
modules/misc/freetype.c
+2
-2
modules/misc/logger.c
modules/misc/logger.c
+1
-1
modules/misc/rtsp.c
modules/misc/rtsp.c
+1
-1
modules/video_chroma/i420_rgb8.c
modules/video_chroma/i420_rgb8.c
+1
-1
No files found.
modules/control/http/macro.c
View file @
982c2c89
...
...
@@ -725,7 +725,7 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
case
MVLC_FLOAT
:
f
=
config_GetFloat
(
p_intf
,
m
->
param1
);
div
=
lldiv
(
f
*
1000000
,
1000000
);
sprintf
(
value
,
I64Fd
"
.%06u"
,
div
.
quot
,
sprintf
(
value
,
"%lld
.%06u"
,
div
.
quot
,
(
unsigned
int
)
div
.
rem
);
break
;
case
MVLC_STRING
:
...
...
modules/control/http/rpn.c
View file @
982c2c89
...
...
@@ -698,7 +698,7 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
{
char
psz_value
[
20
];
lldiv_t
value
=
lldiv
(
val
.
f_float
*
1000000
,
1000000
);
snprintf
(
psz_value
,
sizeof
(
psz_value
),
I64Fd
"
.%06u"
,
snprintf
(
psz_value
,
sizeof
(
psz_value
),
"%lld
.%06u"
,
value
.
quot
,
(
unsigned
int
)
value
.
rem
);
E_
(
SSPush
)(
st
,
psz_value
);
break
;
...
...
@@ -795,7 +795,7 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
char
psz_string
[
20
];
lldiv_t
value
=
lldiv
(
config_GetFloat
(
p_intf
,
psz_variable
)
*
1000000
,
1000000
);
snprintf
(
psz_string
,
sizeof
(
psz_string
),
I64Fd
"
.%06u"
,
snprintf
(
psz_string
,
sizeof
(
psz_string
),
"%lld
.%06u"
,
value
.
quot
,
(
unsigned
int
)
value
.
rem
);
E_
(
SSPush
)(
st
,
psz_string
);
break
;
...
...
@@ -988,7 +988,7 @@ void E_(EvaluateRPN)( intf_thread_t *p_intf, mvar_t *vars,
psz_val
=
vlc_input_item_GetInfo
(
p_item
,
_
(
VLC_META_INFO_CAT
),
_
(
VLC_META_TITLE
)
);
if
(
psz_val
==
NULL
)
psz_val
=
=
strdup
(
p_item
->
psz_name
);
psz_val
=
strdup
(
p_item
->
psz_name
);
}
else
if
(
!
strcmp
(
psz_meta
,
"ALBUM"
)
)
{
...
...
modules/demux/mp4/libmp4.c
View file @
982c2c89
...
...
@@ -67,9 +67,9 @@
#define MP4_GETSTRINGZ( p_str ) \
if( ( i_read > 0 )&&(p_peek[0] ) ) \
{ \
p_str = calloc( sizeof( char ), __MIN( strlen( p_peek ), i_read )+1);\
memcpy( p_str, p_peek, __MIN( strlen( p_peek ), i_read ) ); \
p_str[__MIN( strlen( p_peek ), i_read )] = 0; \
p_str = calloc( sizeof( char ), __MIN( strlen(
(char*)
p_peek ), i_read )+1);\
memcpy( p_str, p_peek, __MIN( strlen(
(char*)
p_peek ), i_read ) ); \
p_str[__MIN( strlen(
(char*)
p_peek ), i_read )] = 0; \
p_peek += strlen( p_str ) + 1; \
i_read -= strlen( p_str ) + 1; \
} \
...
...
@@ -80,14 +80,15 @@
#define MP4_READBOX_ENTER( MP4_Box_data_TYPE_t ) \
int64_t i_read = p_box->i_size; \
u
int64_t i_read = p_box->i_size; \
uint8_t *p_peek, *p_buff; \
i
_read = p_box->i_size
; \
i
nt i_actually_read
; \
if( !( p_peek = p_buff = malloc( i_read ) ) ) \
{ \
return( 0 ); \
} \
if( stream_Read( p_stream, p_peek, i_read ) < i_read )\
i_actually_read = stream_Read( p_stream, p_peek, i_read ); \
if( i_actually_read < 0 || (uint64_t)i_actually_read < i_read )\
{ \
free( p_buff ); \
return( 0 ); \
...
...
@@ -817,7 +818,7 @@ static void MP4_FreeBox_ctts( MP4_Box_t *p_box )
FREENULL
(
p_box
->
data
.
p_ctts
->
i_sample_offset
);
}
static
int
MP4_ReadLengthDescriptor
(
uint8_t
**
pp_peek
,
int64_t
*
i_read
)
static
int
MP4_ReadLengthDescriptor
(
uint8_t
**
pp_peek
,
u
int64_t
*
i_read
)
{
unsigned
int
i_b
;
unsigned
int
i_len
=
0
;
...
...
@@ -2070,7 +2071,7 @@ static int MP4_ReadBox_drms( stream_t *p_stream, MP4_Box_t *p_box )
static
int
MP4_ReadBox_0xa9xxx
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_box
)
{
int16_t
i_length
,
i_dummy
;
u
int16_t
i_length
,
i_dummy
;
MP4_READBOX_ENTER
(
MP4_Box_data_0xa9xxx_t
);
...
...
modules/demux/mp4/libmp4.h
View file @
982c2c89
...
...
@@ -349,7 +349,7 @@ typedef struct MP4_Box_data_url_s
uint8_t
i_version
;
uint32_t
i_flags
;
unsigned
char
*
psz_location
;
char
*
psz_location
;
}
MP4_Box_data_url_t
;
...
...
@@ -358,8 +358,8 @@ typedef struct MP4_Box_data_urn_s
uint8_t
i_version
;
uint32_t
i_flags
;
unsigned
char
*
psz_name
;
unsigned
char
*
psz_location
;
char
*
psz_name
;
char
*
psz_location
;
}
MP4_Box_data_urn_t
;
...
...
@@ -651,7 +651,7 @@ typedef struct MP4_Box_data_cprt_s
/* 1 pad bit */
unsigned
char
i_language
[
3
];
unsigned
char
*
psz_notice
;
char
*
psz_notice
;
}
MP4_Box_data_cprt_t
;
...
...
modules/demux/playlist/dvb.c
View file @
982c2c89
...
...
@@ -99,7 +99,6 @@ static int Demux( demux_t *p_demux )
while
(
(
psz_line
=
stream_ReadLine
(
p_demux
->
s
))
)
{
playlist_item_t
*
p_item
;
char
**
ppsz_options
=
NULL
;
int
i
,
i_options
=
0
;
char
*
psz_name
=
NULL
;
...
...
modules/demux/playlist/gvp.c
View file @
982c2c89
...
...
@@ -66,7 +66,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args );
int
E_
(
Import_GVP
)(
vlc_object_t
*
p_this
)
{
demux_t
*
p_demux
=
(
demux_t
*
)
p_this
;
int
i_size
;
byte_t
*
p_peek
;
CHECK_PEEK
(
p_peek
,
12
);
...
...
modules/demux/playlist/shoutcast.c
View file @
982c2c89
...
...
@@ -395,7 +395,6 @@ static int DemuxStation( demux_t *p_demux )
(
psz_base
||
(
psz_rt
&&
psz_load
&&
(
p_sys
->
b_adult
||
strcmp
(
psz_rt
,
"NC17"
)
)
)
)
)
{
playlist_item_t
*
p_item
;
char
*
psz_mrl
=
NULL
;
if
(
psz_rt
||
psz_load
)
{
...
...
modules/misc/freetype.c
View file @
982c2c89
...
...
@@ -754,12 +754,12 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
}
{
char
*
p_in_buffer
,
*
p_out_buffer
;
char
*
p_out_buffer
;
const
char
*
p_in_buffer
=
psz_string
;
size_t
i_in_bytes
,
i_out_bytes
,
i_out_bytes_left
,
i_ret
;
i_in_bytes
=
strlen
(
psz_string
);
i_out_bytes
=
i_in_bytes
*
sizeof
(
uint32_t
);
i_out_bytes_left
=
i_out_bytes
;
p_in_buffer
=
psz_string
;
p_out_buffer
=
(
char
*
)
psz_unicode
;
i_ret
=
vlc_iconv
(
iconv_handle
,
&
p_in_buffer
,
&
i_in_bytes
,
&
p_out_buffer
,
&
i_out_bytes_left
);
...
...
modules/misc/logger.c
View file @
982c2c89
...
...
@@ -449,7 +449,7 @@ static void DoRRD( intf_thread_t *p_intf )
lldiv_t
dout
=
lldiv
(
p_playlist
->
p_stats
->
f_output_bitrate
*
1000000
,
1000
);
fprintf
(
p_intf
->
p_sys
->
p_rrd
,
I64Fi
":
"
I64Fd
".%03u:"
I64Fd
".%03u:"
I64Fd
"
.%03u
\n
"
,
I64Fi
":
%lld.%03u:%lld.%03u:%lld
.%03u
\n
"
,
p_intf
->
p_sys
->
last_update
/
1000000
,
din
.
quot
,
(
unsigned
int
)
din
.
rem
,
ddm
.
quot
,
(
unsigned
int
)
ddm
.
rem
,
...
...
modules/misc/rtsp.c
View file @
982c2c89
...
...
@@ -1291,7 +1291,7 @@ static char *SDPGenerate( const vod_media_t *p_media, httpd_client_t *cl )
if
(
p_media
->
i_length
>
0
)
{
lldiv_t
d
=
lldiv
(
p_media
->
i_length
/
1000
,
1000
);
p
+=
sprintf
(
p
,
"a=range:npt=0-
"
I64Fd
"
.%03u
\r\n
"
,
d
.
quot
,
p
+=
sprintf
(
p
,
"a=range:npt=0-
%lld
.%03u
\r\n
"
,
d
.
quot
,
(
unsigned
)
d
.
rem
);
}
...
...
modules/video_chroma/i420_rgb8.c
View file @
982c2c89
...
...
@@ -47,7 +47,7 @@ void E_(I420_RGB8)( vout_thread_t *p_vout, picture_t *p_src, picture_t *p_dest )
uint8_t
*
p_v
=
p_src
->
V_PIXELS
;
vlc_bool_t
b_hscale
;
/* horizontal scaling type */
unsigned
int
i_vscale
;
/* vertical scaling type */
int
i_vscale
;
/* vertical scaling type */
unsigned
int
i_x
,
i_y
;
/* horizontal and vertical indexes */
unsigned
int
i_real_y
;
/* y % 4 */
int
i_right_margin
;
...
...
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