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
7d6f6984
Commit
7d6f6984
authored
Jan 23, 2002
by
Christophe Massiot
Browse files
Fixed a bug introduced yesterday.
parent
ef1efb18
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/ac3_adec/ac3_adec.c
View file @
7d6f6984
...
...
@@ -2,7 +2,7 @@
* ac3_adec.c: ac3 decoder module main file
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: ac3_adec.c,v 1.1
6
2002/01/2
2
23:14:
26
massiot Exp $
* $Id: ac3_adec.c,v 1.1
7
2002/01/2
3
23:14:
59
massiot Exp $
*
* Authors: Michel Lespinasse <walken@zoy.org>
*
...
...
@@ -254,8 +254,13 @@ static int decoder_Run ( decoder_config_t * p_config )
int
i_sync_ptr
;
#define p_bit_stream (&p_ac3thread->ac3_decoder->bit_stream)
/* Go to the next data packet and jump to sync_ptr */
BitstreamNextDataPacket
(
p_bit_stream
);
/* Go to the next PES packet and jump to sync_ptr */
do
{
BitstreamNextDataPacket
(
p_bit_stream
);
}
while
(
!
p_bit_stream
->
p_decoder_fifo
->
b_die
&&
!
p_bit_stream
->
p_decoder_fifo
->
b_error
&&
p_bit_stream
->
p_data
!=
p_bit_stream
->
p_decoder_fifo
->
p_first
->
p_first
);
i_sync_ptr
=
*
(
p_bit_stream
->
p_byte
-
2
)
<<
8
|
*
(
p_bit_stream
->
p_byte
-
1
);
p_bit_stream
->
p_byte
+=
i_sync_ptr
;
...
...
Write
Preview
Supports
Markdown
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