mirror of
https://code.videolan.org/videolan/vlc
synced 2024-10-03 01:31:53 +02:00
Revert [14683]
You can definitely declare variable at the beginning of a nested block with gcc 2.95
This commit is contained in:
parent
c0d091cefb
commit
e63d66d5d5
@ -1133,7 +1133,6 @@ static char *SDPGenerate( const vod_media_t *p_media, httpd_client_t *cl )
|
||||
int i, i_size;
|
||||
char *p, *psz_sdp, ip[NI_MAXNUMERICHOST], ipv;
|
||||
const char *psz_control;
|
||||
lldiv_t d;
|
||||
|
||||
if( httpd_ServerIP( cl, ip ) == NULL )
|
||||
return NULL;
|
||||
@ -1196,7 +1195,7 @@ static char *SDPGenerate( const vod_media_t *p_media, httpd_client_t *cl )
|
||||
|
||||
if( p_media->i_length > 0 )
|
||||
{
|
||||
d = lldiv( p_media->i_length / 1000, 1000 );
|
||||
lldiv_t d = lldiv( p_media->i_length / 1000, 1000 );
|
||||
p += sprintf( p, "a=range:npt=0-"I64Fd".%03u\r\n", d.quot,
|
||||
(unsigned)d.rem );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user