[vlc-commits] TS demux: decoder_config_descriptor_t: remove write-only members
Rafaël Carré
git at videolan.org
Mon Mar 5 10:39:51 CET 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Feb 15 22:50:10 2012 -0500| [3eb3203a4269935b96dc2f60ab4af7347a20e52e] | committer: Rafaël Carré
TS demux: decoder_config_descriptor_t: remove write-only members
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3eb3203a4269935b96dc2f60ab4af7347a20e52e
---
modules/demux/ts.c | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index b7ae246..dfcb126 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -182,10 +182,6 @@ typedef struct
{
uint8_t i_objectTypeIndication;
uint8_t i_streamType;
- bool b_upStream;
- uint32_t i_bufferSizeDB;
- uint32_t i_maxBitrate;
- uint32_t i_avgBitrate;
int i_extra;
uint8_t *p_extra;
@@ -2476,16 +2472,17 @@ static iod_descriptor_t *IODNew( int i_data, uint8_t *p_data )
dec_descr.i_objectTypeIndication = IODGetByte( &i_data, &p_data );
i_flags = IODGetByte( &i_data, &p_data );
dec_descr.i_streamType = i_flags >> 2;
- dec_descr.b_upStream = ( i_flags >> 1 )&0x01;
- dec_descr.i_bufferSizeDB = IODGet3Bytes( &i_data, &p_data );
- dec_descr.i_maxBitrate = IODGetDWord( &i_data, &p_data );
- dec_descr.i_avgBitrate = IODGetDWord( &i_data, &p_data );
+
+ bool b_upStream = ( i_flags >> 1 )&0x01;
+ uint32_t i_bufferSizeDB = IODGet3Bytes( &i_data, &p_data );
+ uint32_t i_maxBitrate = IODGetDWord( &i_data, &p_data );
+ uint32_t i_avgBitrate = IODGetDWord( &i_data, &p_data );
ts_debug( "\n* * objectTypeIndication:0x%x", dec_descr.i_objectTypeIndication );
ts_debug( "\n* * streamType:0x%x", dec_descr.i_streamType );
- ts_debug( "\n* * upStream:%d", dec_descr.b_upStream );
- ts_debug( "\n* * bufferSizeDB:%d", dec_descr.i_bufferSizeDB );
- ts_debug( "\n* * maxBitrate:%d", dec_descr.i_maxBitrate );
- ts_debug( "\n* * avgBitrate:%d", dec_descr.i_avgBitrate );
+ ts_debug( "\n* * upStream:%d", b_upStream );
+ ts_debug( "\n* * bufferSizeDB:%d", i_bufferSizeDB );
+ ts_debug( "\n* * maxBitrate:%d", i_maxBitrate );
+ ts_debug( "\n* * avgBitrate:%d", i_avgBitrate );
if( i_decoderConfigDescr_length > 13 && IODGetByte( &i_data, &p_data ) == 0x05 )
{
dec_descr.i_extra = IODDescriptorLength( &i_data, &p_data );
More information about the vlc-commits
mailing list