diff options
-rw-r--r-- | src/libdts/xine_decoder.c | 4 | ||||
-rw-r--r-- | src/xine-engine/audio_out.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/libdts/xine_decoder.c b/src/libdts/xine_decoder.c index 9b94c9f0a..877424b38 100644 --- a/src/libdts/xine_decoder.c +++ b/src/libdts/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.4 2001/11/16 20:24:56 jcdutton Exp $ + * $Id: xine_decoder.c,v 1.5 2001/11/16 21:06:21 jcdutton Exp $ * * 04-09-2001 DTS passtrough (C) Joachim Koenig * @@ -89,6 +89,8 @@ void dts_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { } ac5_type=((data[4] & 0x01) << 6) | ((data[5] >>2) & 0x3f); ac5_length=((data[5] & 0x03) << 12) | ((data[6] & 0xff) << 4) | ((data[7] & 0xf0) >> 4); + ac5_length++; + /* printf("DTS AC5 length=%d\n",ac5_length); */ if (ac5_length > 8191) { printf("ac5_length too long\n"); diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 9919d4197..bb72a64a5 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.27 2001/11/16 20:24:56 jcdutton Exp $ + * $Id: audio_out.c,v 1.28 2001/11/16 21:06:22 jcdutton Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe <andy@alsaplayer.org> @@ -454,6 +454,7 @@ static void *ao_loop (void *this_gen) { ac5_length=((data[5] & 0x03) << 12) | ((data[6] & 0xff) << 4) | ((data[7] & 0xf0) >> 4); + ac5_length++; /* printf("AC5 length=%d\n",ac5_length); */ if (ac5_length > 8191) { break; |