Changeset 59173c65552ee499e502e4961215e85526e483ff
- Timestamp:
- 02/12/03 00:39:11
(5 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1070321951 +0000
- git-parent:
[2202af209fbd40847dfce15abaa6f1aedfe9e2c6]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1070321951 +0000
- Message:
* ALL: fixed DTS audio support.
* modules/demux/dts.c: added raw DTS audio demuxer.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r78ba4b7 |
r59173c6 |
|
| 1 | 1 | dnl Autoconf settings for vlc |
|---|
| 2 | | dnl $Id: configure.ac,v 1.125 2003/11/30 18:14:20 rocky Exp $ |
|---|
| | 2 | dnl $Id: configure.ac,v 1.126 2003/12/01 23:39:11 gbazin Exp $ |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | AC_INIT(vlc,0.7.0-test1) |
|---|
| … | … | |
| 879 | 879 | AX_ADD_PLUGINS([id3 m3u]) |
|---|
| 880 | 880 | AX_ADD_PLUGINS([rawvideo]) |
|---|
| 881 | | AX_ADD_PLUGINS([wav araw demuxdump demuxsub adpcm a52sys au]) |
|---|
| | 881 | AX_ADD_PLUGINS([wav araw demuxdump demuxsub adpcm a52sys dtssys au]) |
|---|
| 882 | 882 | AX_ADD_PLUGINS([access_file access_udp access_tcp access_http ipv4 access_mms]) |
|---|
| 883 | 883 | AX_ADD_PLUGINS([access_ftp access_directory sap httpd http]) |
|---|
| r61f6d45 |
r59173c6 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2003 VideoLAN |
|---|
| 5 | | * $Id: dts.c,v 1.7 2003/11/22 23:39:14 fenrir Exp $ |
|---|
| | 5 | * $Id: dts.c,v 1.8 2003/12/01 23:39:11 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| … | … | |
| 259 | 259 | } |
|---|
| 260 | 260 | |
|---|
| 261 | | if( p_header[0] == 0x7f && p_header[1] == 0xfe && |
|---|
| 262 | | p_header[2] == 0x80 && p_header[3] == 0x01 ) |
|---|
| | 261 | if( p_header[0] != 0x7f || p_header[1] != 0xfe || |
|---|
| | 262 | p_header[2] != 0x80 || p_header[3] != 0x01 ) |
|---|
| 263 | 263 | { |
|---|
| 264 | 264 | msg_Dbg( p_dec, "emulated sync word " |
|---|
| 265 | | "(no sync on following frame)" ); |
|---|
| | 265 | "(no sync on following frame) %2.2x%2.2x%2.2x%2.2x", |
|---|
| | 266 | p_header[0], p_header[1], p_header[2], p_header[3] ); |
|---|
| 266 | 267 | p_sys->i_state = STATE_NOSYNC; |
|---|
| 267 | 268 | block_SkipByte( &p_sys->bytestream ); |
|---|
| … | … | |
| 573 | 574 | *pi_frame_length = (i_frame_length + 1) * 32; |
|---|
| 574 | 575 | |
|---|
| 575 | | return( i_frame_size + 1 ); |
|---|
| 576 | | } |
|---|
| | 576 | return i_frame_size + 1; |
|---|
| | 577 | } |
|---|
| r2ad7219 |
r59173c6 |
|
| 1 | 1 | SOURCES_a52sys = a52sys.c |
|---|
| | 2 | SOURCES_dtssys = dts.c |
|---|
| 2 | 3 | SOURCES_flac = flac.c |
|---|
| 3 | 4 | SOURCES_ogg = ogg.c |
|---|
| r97f5289 |
r59173c6 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1998-2002 VideoLAN |
|---|
| 5 | | * $Id: system.c,v 1.22 2003/11/26 20:44:38 fenrir Exp $ |
|---|
| | 5 | * $Id: system.c,v 1.23 2003/12/01 23:39:11 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 364 | 364 | |
|---|
| 365 | 365 | /* Welcome to the kludge area ! --Meuuh */ |
|---|
| 366 | | if ( p_es->i_fourcc == VLC_FOURCC('a','5','2','b') ) |
|---|
| 367 | | { |
|---|
| 368 | | /* With A/52 audio, we need to skip the first 4 bytes */ |
|---|
| | 366 | if ( p_es->i_fourcc == VLC_FOURCC('a','5','2','b') |
|---|
| | 367 | || p_es->i_fourcc == VLC_FOURCC('d','t','s','b') ) |
|---|
| | 368 | { |
|---|
| | 369 | /* With A/52 or DTS audio, we need to skip the first 4 bytes */ |
|---|
| 369 | 370 | i_pes_header_size += 4; |
|---|
| 370 | 371 | } |
|---|
| … | … | |
| 372 | 373 | if ( p_es->i_fourcc == VLC_FOURCC('l','p','c','b') |
|---|
| 373 | 374 | || p_es->i_fourcc == VLC_FOURCC('s','p','u','b') |
|---|
| 374 | | || p_es->i_fourcc == VLC_FOURCC('d','t','s','b') |
|---|
| 375 | 375 | || p_es->i_fourcc == VLC_FOURCC('s','d','d','b') ) |
|---|
| 376 | 376 | { |
|---|
| r0fe9b69 |
r59173c6 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: pes.c,v 1.12 2003/11/15 18:57:12 fenrir Exp $ |
|---|
| | 5 | * $Id: pes.c,v 1.13 2003/12/01 23:39:11 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 60 | 60 | { |
|---|
| 61 | 61 | i_extra = 1; |
|---|
| 62 | | if( ( i_private_id&0xf8 ) == 0x80 ) |
|---|
| | 62 | if( ( i_private_id & 0xf0 ) == 0x80 ) |
|---|
| 63 | 63 | { |
|---|
| 64 | 64 | i_extra += 3; |
|---|