Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6ac2aafa
Commit
6ac2aafa
authored
Oct 31, 2001
by
Renaud Dartus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fixed a segfault on exit under Windows 2000
parent
96e3c332
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
11 deletions
+21
-11
include/common.h
include/common.h
+2
-6
plugins/imdct/ac3_srfft_sse.c
plugins/imdct/ac3_srfft_sse.c
+1
-3
src/ac3_decoder/ac3_decoder.h
src/ac3_decoder/ac3_decoder.h
+4
-1
src/ac3_decoder/ac3_decoder_thread.c
src/ac3_decoder/ac3_decoder_thread.c
+14
-1
No files found.
include/common.h
View file @
6ac2aafa
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.4
3 2001/10/30 19:34
:53 reno Exp $
* $Id: common.h,v 1.4
4 2001/10/31 11:55
:53 reno Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -209,12 +209,8 @@ struct pgrm_descriptor_s;
# include <unistd.h>
# define memalign(align,size) valloc(size)
# else
# if defined( __MINGW32__ )
# define memalign(align,size) (void *)(((unsigned long)(malloc(size+align-1))+align-1)&~(align-1))
# else
/* Assume malloc alignment is sufficient */
# define memalign(align,size) malloc(size)
# endif
# define memalign(align,size) malloc(size)
# endif
...
...
plugins/imdct/ac3_srfft_sse.c
View file @
6ac2aafa
...
...
@@ -2,7 +2,7 @@
* ac3_srfft_sse.c: accelerated SSE ac3 fft functions
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: ac3_srfft_sse.c,v 1.
6 2001/10/30 19:34
:53 reno Exp $
* $Id: ac3_srfft_sse.c,v 1.
7 2001/10/31 11:55
:53 reno Exp $
*
* Authors: Renaud Dartus <reno@videolan.org>
* Aaron Holtzman <aholtzma@engr.uvic.ca>
...
...
@@ -200,7 +200,6 @@ static void fft_asmb_sse (int k, complex_t *x, complex_t *wTB,
{
__asm__
__volatile__
(
".align 16
\n
"
"pushl %%esp
\n
"
"pushl %%ebp
\n
"
"movl %%esp, %%ebp
\n
"
...
...
@@ -345,7 +344,6 @@ static void fft_asmb_sse (int k, complex_t *x, complex_t *wTB,
"addl $4, %%esp
\n
"
"leave
\n
"
"popl %%esp
\n
"
:
"=c"
(
k
),
"=a"
(
x
),
"=D"
(
wTB
)
:
"c"
(
k
),
"a"
(
x
),
"D"
(
wTB
),
"d"
(
d
),
"S"
(
d_3
),
"b"
(
C_1_sse
)
);
}
src/ac3_decoder/ac3_decoder.h
View file @
6ac2aafa
...
...
@@ -2,7 +2,7 @@
* ac3_decoder.h : ac3 decoder interface
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: ac3_decoder.h,v 1.1
2 2001/10/30 19:34
:53 reno Exp $
* $Id: ac3_decoder.h,v 1.1
3 2001/10/31 11:55
:53 reno Exp $
*
* Authors: Michel Kaempf <maxx@via.ecp.fr>
* Renaud Dartus <reno@videolan.org>
...
...
@@ -355,6 +355,9 @@ typedef struct mantissa_s
struct
ac3dec_s
{
float
*
samples
;
#if defined( __MINGW32__ )
float
*
samples_back
;
#endif
imdct_t
*
imdct
;
/*
...
...
src/ac3_decoder/ac3_decoder_thread.c
View file @
6ac2aafa
...
...
@@ -2,7 +2,7 @@
* ac3_decoder_thread.c: ac3 decoder thread
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: ac3_decoder_thread.c,v 1.3
8 2001/10/30 19:34
:53 reno Exp $
* $Id: ac3_decoder_thread.c,v 1.3
9 2001/10/31 11:55
:53 reno Exp $
*
* Authors: Michel Lespinasse <walken@zoy.org>
*
...
...
@@ -151,7 +151,12 @@ vlc_thread_t ac3dec_CreateThread( adec_config_t * p_config )
#undef IMDCT
/* Initialize the ac3 decoder structures */
#if defined( __MINGW32__ )
p_ac3thread
->
ac3_decoder
->
samples_back
=
memalign
(
16
,
6
*
256
*
sizeof
(
float
)
+
15
);
p_ac3thread
->
ac3_decoder
->
samples
=
(
float
*
)
(((
unsigned
long
)
p_ac3thread
->
ac3_decoder
->
samples_back
+
15
)
&
~
0xFUL
);
#else
p_ac3thread
->
ac3_decoder
->
samples
=
memalign
(
16
,
6
*
256
*
sizeof
(
float
));
#endif
p_ac3thread
->
ac3_decoder
->
imdct
->
buf
=
memalign
(
16
,
N
/
4
*
sizeof
(
complex_t
));
p_ac3thread
->
ac3_decoder
->
imdct
->
delay
=
memalign
(
16
,
6
*
256
*
sizeof
(
float
));
p_ac3thread
->
ac3_decoder
->
imdct
->
delay1
=
memalign
(
16
,
6
*
256
*
sizeof
(
float
));
...
...
@@ -197,7 +202,11 @@ vlc_thread_t ac3dec_CreateThread( adec_config_t * p_config )
free
(
p_ac3thread
->
ac3_decoder
->
imdct
->
delay1
);
free
(
p_ac3thread
->
ac3_decoder
->
imdct
->
delay
);
free
(
p_ac3thread
->
ac3_decoder
->
imdct
->
buf
);
#if defined( __MINGW32__ )
free
(
p_ac3thread
->
ac3_decoder
->
samples_back
);
#else
free
(
p_ac3thread
->
ac3_decoder
->
samples
);
#endif
free
(
p_ac3thread
->
ac3_decoder
->
imdct
);
free
(
p_ac3thread
->
ac3_decoder
);
free
(
p_ac3thread
);
...
...
@@ -392,7 +401,11 @@ static void EndThread (ac3dec_thread_t * p_ac3thread)
free
(
p_ac3thread
->
ac3_decoder
->
imdct
->
delay1
);
free
(
p_ac3thread
->
ac3_decoder
->
imdct
->
delay
);
free
(
p_ac3thread
->
ac3_decoder
->
imdct
->
buf
);
#if defined( __MINGW32__ )
free
(
p_ac3thread
->
ac3_decoder
->
samples_back
);
#else
free
(
p_ac3thread
->
ac3_decoder
->
samples
);
#endif
free
(
p_ac3thread
->
ac3_decoder
->
imdct
);
free
(
p_ac3thread
->
ac3_decoder
);
free
(
p_ac3thread
->
p_config
);
...
...
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