[vlc-devel] commit: Support padded frames in DTS files (close #3274). (Laurent Aimar )
git version control
git at videolan.org
Sat Jan 30 14:33:00 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Jan 30 14:31:30 2010 +0100| [e8beaf5c24dfff63d0f6a0671123da09057f7b7d] | committer: Laurent Aimar
Support padded frames in DTS files (close #3274).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e8beaf5c24dfff63d0f6a0671123da09057f7b7d
---
modules/codec/dts.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/codec/dts.c b/modules/codec/dts.c
index 7290491..22d1f9c 100644
--- a/modules/codec/dts.c
+++ b/modules/codec/dts.c
@@ -278,6 +278,14 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
return NULL;
}
+ if( p_sys->b_packetizer &&
+ p_header[0] == 0 && p_header[1] == 0 )
+ {
+ /* DTS wav files and audio CD's use stuffing */
+ p_sys->i_state = STATE_SEND_DATA;
+ break;
+ }
+
if( SyncCode( p_header ) != VLC_SUCCESS )
{
msg_Dbg( p_dec, "emulated sync word "
More information about the vlc-devel
mailing list