Commit 9aa09bba authored by Jean-Paul Saman's avatar Jean-Paul Saman

Made es_format_t member i_bitrate unsigned int, because I cannot imagine it ever to be negative.

parent faddfac0
...@@ -163,7 +163,7 @@ struct es_format_t ...@@ -163,7 +163,7 @@ struct es_format_t
video_format_t video; video_format_t video;
subs_format_t subs; subs_format_t subs;
int i_bitrate; unsigned int i_bitrate;
vlc_bool_t b_packetized; /* wether the data is packetized vlc_bool_t b_packetized; /* wether the data is packetized
(ie. not truncated) */ (ie. not truncated) */
......
/***************************************************************************** /*****************************************************************************
* dts.c: parse DTS audio sync info and packetize the stream * dts.c: parse DTS audio sync info and packetize the stream
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 the VideoLAN team * Copyright (C) 2003-2005 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...@@ -54,8 +54,12 @@ struct decoder_sys_t ...@@ -54,8 +54,12 @@ struct decoder_sys_t
mtime_t i_pts; mtime_t i_pts;
int i_frame_size, i_bit_rate; unsigned int i_bit_rate;
unsigned int i_frame_length, i_rate, i_channels, i_channels_conf; unsigned int i_frame_size;
unsigned int i_frame_length;
unsigned int i_rate;
unsigned int i_channels;
unsigned int i_channels_conf;
}; };
enum { enum {
...@@ -78,7 +82,7 @@ static void *DecodeBlock ( decoder_t *, block_t ** ); ...@@ -78,7 +82,7 @@ static void *DecodeBlock ( decoder_t *, block_t ** );
static inline int SyncCode( const uint8_t * ); static inline int SyncCode( const uint8_t * );
static int SyncInfo ( const uint8_t *, unsigned int *, unsigned int *, static int SyncInfo ( const uint8_t *, unsigned int *, unsigned int *,
unsigned int *, int *, unsigned int * ); unsigned int *, unsigned int *, unsigned int * );
static uint8_t *GetOutBuffer ( decoder_t *, void ** ); static uint8_t *GetOutBuffer ( decoder_t *, void ** );
static aout_buffer_t *GetAoutBuffer( decoder_t * ); static aout_buffer_t *GetAoutBuffer( decoder_t * );
...@@ -425,7 +429,7 @@ static const unsigned int ppi_dts_bitrate[] = ...@@ -425,7 +429,7 @@ static const unsigned int ppi_dts_bitrate[] =
static int SyncInfo16be( const uint8_t *p_buf, static int SyncInfo16be( const uint8_t *p_buf,
unsigned int *pi_audio_mode, unsigned int *pi_audio_mode,
unsigned int *pi_sample_rate, unsigned int *pi_sample_rate,
int *pi_bit_rate, unsigned int *pi_bit_rate,
unsigned int *pi_frame_length ) unsigned int *pi_frame_length )
{ {
unsigned int i_frame_size; unsigned int i_frame_size;
...@@ -537,7 +541,7 @@ static int SyncInfo( const uint8_t *p_buf, ...@@ -537,7 +541,7 @@ static int SyncInfo( const uint8_t *p_buf,
unsigned int *pi_channels, unsigned int *pi_channels,
unsigned int *pi_channels_conf, unsigned int *pi_channels_conf,
unsigned int *pi_sample_rate, unsigned int *pi_sample_rate,
int *pi_bit_rate, unsigned int *pi_bit_rate,
unsigned int *pi_frame_length ) unsigned int *pi_frame_length )
{ {
unsigned int i_audio_mode; unsigned int i_audio_mode;
......
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