Commit 347fc3b2 authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/dts.c: bug-fix for s/pdif support.
parent 65004d0c
......@@ -2,7 +2,7 @@
* dts.c: parse DTS audio sync info and packetize the stream
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: dts.c,v 1.11 2004/01/25 18:20:12 bigben Exp $
* $Id: dts.c,v 1.12 2004/01/27 19:14:07 gbazin Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Gildas Bazin <gbazin@netcourrier.com>
......@@ -297,14 +297,11 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if( p_sys->i_pts == p_sys->bytestream.p_block->i_pts )
p_sys->i_pts = p_sys->bytestream.p_block->i_pts = 0;
/* So p_block doesn't get re-added several times */
*pp_block = block_BytestreamPop( &p_sys->bytestream );
p_sys->i_state = STATE_NOSYNC;
if( !p_sys->b_packetizer )
{
if( p_sys->i_frames_in_buf != 3 ) return NULL;
if( p_sys->i_frames_in_buf != 3 ) break;
else
{
p_sys->i_frames_in_buf = 0;
......@@ -312,6 +309,9 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
}
/* So p_block doesn't get re-added several times */
*pp_block = block_BytestreamPop( &p_sys->bytestream );
return p_out_buffer;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment