Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
073c4afd
Commit
073c4afd
authored
May 03, 2003
by
Laurent Aimar
Browse files
* all: shut up valgrind ;) (memory leacks and one overead/overwrite).
parent
14d8d6e1
Changes
5
Hide whitespace changes
Inline
Side-by-side
modules/demux/avi/avi.c
View file @
073c4afd
...
...
@@ -2,7 +2,7 @@
* avi.c : AVI file Stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: avi.c,v 1.4
5
2003/0
4/28 23:25:50
fenrir Exp $
* $Id: avi.c,v 1.4
6
2003/0
5/03 01:12:13
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -1248,6 +1248,10 @@ static int AVIInit( vlc_object_t * p_this )
p_es
->
i_cat
=
p_info
->
i_cat
;
if
(
p_es
->
i_cat
==
AUDIO_ES
)
{
if
(
i_init_size
<
sizeof
(
WAVEFORMATEX
)
)
{
i_init_size
=
sizeof
(
WAVEFORMATEX
);
}
p_es
->
p_waveformatex
=
malloc
(
i_init_size
);
memcpy
(
p_es
->
p_waveformatex
,
p_init_data
,
i_init_size
);
}
...
...
modules/demux/avi/avi.h
View file @
073c4afd
...
...
@@ -2,7 +2,7 @@
* avi.h : AVI file Stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: avi.h,v 1.
9
2003/0
4/27 11:55:0
3 fenrir Exp $
* $Id: avi.h,v 1.
10
2003/0
5/03 01:12:1
3 fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -27,7 +27,7 @@ typedef struct avi_packet_s
uint32_t
i_size
;
vlc_fourcc_t
i_type
;
// only for AVIFOURCC_LIST
uint8_t
i_peek
[
8
];
//first 8 bytes
uint8_t
i_peek
[
8
];
//first 8 bytes
unsigned
int
i_stream
;
unsigned
int
i_cat
;
...
...
modules/demux/avi/libavi.c
View file @
073c4afd
...
...
@@ -2,7 +2,7 @@
* libavi.c :
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: libavi.c,v 1.
19
2003/0
4/27 13:55:51
fenrir Exp $
* $Id: libavi.c,v 1.
20
2003/0
5/03 01:12:13
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -527,7 +527,7 @@ static int AVI_ChunkRead_strf( input_thread_t *p_input,
{
case
(
AVIFOURCC_auds
):
p_chk
->
strf
.
auds
.
i_cat
=
AUDIO_ES
;
p_chk
->
strf
.
auds
.
p_wf
=
malloc
(
p_chk
->
common
.
i_chunk_size
);
p_chk
->
strf
.
auds
.
p_wf
=
malloc
(
__MAX
(
p_chk
->
common
.
i_chunk_size
,
sizeof
(
WAVEFORMATEX
)
)
);
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
wFormatTag
);
AVI_READ2BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
nChannels
);
AVI_READ4BYTES
(
p_chk
->
strf
.
auds
.
p_wf
->
nSamplesPerSec
);
...
...
modules/packetizer/copy.c
View file @
073c4afd
...
...
@@ -2,7 +2,7 @@
* copy.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: copy.c,v 1.
8
2003/05/0
2
0
0:33:42
fenrir Exp $
* $Id: copy.c,v 1.
9
2003/05/0
3
0
1:12:13
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
...
...
@@ -542,6 +542,7 @@ static void EndThread ( packetizer_thread_t *p_pack)
{
sout_InputDelete
(
p_pack
->
p_sout_input
);
}
free
(
p_pack
);
}
static
void
input_ShowPES
(
decoder_fifo_t
*
p_fifo
,
pes_packet_t
**
pp_pes
)
...
...
modules/stream_out/transcode.c
View file @
073c4afd
...
...
@@ -2,7 +2,7 @@
* transcode.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: transcode.c,v 1.
9
2003/05/0
2 19:37:08
fenrir Exp $
* $Id: transcode.c,v 1.
10
2003/05/0
3 01:12:13
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -585,7 +585,9 @@ static void transcode_audio_ffmpeg_close ( sout_stream_t *p_stream, sout_stream_
free
(
id
->
ff_dec_c
);
free
(
id
->
ff_enc_c
);
free
(
id
->
p_buffer_in
);
free
(
id
->
p_buffer
);
free
(
id
->
p_buffer_out
);
}
static
int
transcode_audio_ffmpeg_process
(
sout_stream_t
*
p_stream
,
sout_stream_id_t
*
id
,
...
...
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