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
5b322485
Commit
5b322485
authored
Mar 12, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* a52 plugin updated to use liba52-0.7.3 ( which is now available on debian :)
parent
2ce7beda
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
plugins/a52/a52.c
plugins/a52/a52.c
+7
-6
plugins/a52/a52.h
plugins/a52/a52.h
+2
-3
No files found.
plugins/a52/a52.c
View file @
5b322485
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* (http://liba52.sf.net/).
* (http://liba52.sf.net/).
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: a52.c,v 1.
5 2002/02/24 22:06:50 sam
Exp $
* $Id: a52.c,v 1.
6 2002/03/12 20:39:50 gbazin
Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -187,8 +187,8 @@ static int InitThread( a52_adec_thread_t * p_a52_adec )
...
@@ -187,8 +187,8 @@ static int InitThread( a52_adec_thread_t * p_a52_adec )
intf_WarnMsg
(
3
,
"a52: InitThread"
);
intf_WarnMsg
(
3
,
"a52: InitThread"
);
/* Initialize liba52 */
/* Initialize liba52 */
p_a52_adec
->
p_
decoded_samples
=
a52_init
(
0
);
p_a52_adec
->
p_
a52_state
=
a52_init
(
0
);
if
(
p_a52_adec
->
p_
decoded_samples
==
NULL
)
if
(
p_a52_adec
->
p_
a52_state
==
NULL
)
{
{
intf_ErrMsg
(
"a52 error: InitThread() unable to initialize "
intf_ErrMsg
(
"a52 error: InitThread() unable to initialize "
"liba52"
);
"liba52"
);
...
@@ -266,15 +266,15 @@ static int DecodeFrame( a52_adec_thread_t * p_a52_adec )
...
@@ -266,15 +266,15 @@ static int DecodeFrame( a52_adec_thread_t * p_a52_adec )
p_a52_adec
->
frame_size
-
7
);
p_a52_adec
->
frame_size
-
7
);
/* do the actual decoding now */
/* do the actual decoding now */
a52_frame
(
&
p_a52_adec
->
a52_state
,
p_a52_adec
->
p_frame_buffer
,
a52_frame
(
p_a52_adec
->
p_
a52_state
,
p_a52_adec
->
p_frame_buffer
,
&
p_a52_adec
->
flags
,
&
sample_level
,
384
);
&
p_a52_adec
->
flags
,
&
sample_level
,
384
);
for
(
i
=
0
;
i
<
6
;
i
++
)
for
(
i
=
0
;
i
<
6
;
i
++
)
{
{
if
(
a52_block
(
&
p_a52_adec
->
a52_state
,
p_a52_adec
->
p_decoded_samples
)
)
if
(
a52_block
(
p_a52_adec
->
p_a52_state
)
)
intf_WarnMsg
(
5
,
"a52: a52_block failed for block %i"
,
i
);
intf_WarnMsg
(
5
,
"a52: a52_block failed for block %i"
,
i
);
float2s16_2
(
p_a52_adec
->
p_decoded_samples
,
float2s16_2
(
a52_samples
(
p_a52_adec
->
p_a52_state
)
,
((
int16_t
*
)
p_buffer
)
+
i
*
256
*
p_a52_adec
->
i_channels
);
((
int16_t
*
)
p_buffer
)
+
i
*
256
*
p_a52_adec
->
i_channels
);
}
}
...
@@ -306,6 +306,7 @@ static void EndThread (a52_adec_thread_t *p_a52_adec)
...
@@ -306,6 +306,7 @@ static void EndThread (a52_adec_thread_t *p_a52_adec)
vlc_mutex_unlock
(
&
(
p_a52_adec
->
p_aout_fifo
->
data_lock
));
vlc_mutex_unlock
(
&
(
p_a52_adec
->
p_aout_fifo
->
data_lock
));
}
}
a52_free
(
p_a52_adec
->
p_a52_state
);
free
(
p_a52_adec
);
free
(
p_a52_adec
);
}
}
...
...
plugins/a52/a52.h
View file @
5b322485
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* (http://liba52.sf.net/).
* (http://liba52.sf.net/).
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: a52.h,v 1.
1 2002/02/06 20:44:22
gbazin Exp $
* $Id: a52.h,v 1.
2 2002/03/12 20:39:50
gbazin Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -31,12 +31,11 @@ typedef struct a52_adec_thread_s
...
@@ -31,12 +31,11 @@ typedef struct a52_adec_thread_s
/*
/*
* liba52 properties
* liba52 properties
*/
*/
a52_state_t
a52_state
;
a52_state_t
*
p_
a52_state
;
int
frame_size
;
int
frame_size
;
int
flags
;
int
flags
;
int
sample_rate
;
int
sample_rate
;
int
bit_rate
;
int
bit_rate
;
sample_t
*
p_decoded_samples
;
/* The bit stream structure handles the PES stream at the bit level */
/* The bit stream structure handles the PES stream at the bit level */
bit_stream_t
bit_stream
;
bit_stream_t
bit_stream
;
...
...
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