Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9aa09bba
Commit
9aa09bba
authored
Aug 09, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made es_format_t member i_bitrate unsigned int, because I cannot imagine it ever to be negative.
parent
faddfac0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
include/vlc_es.h
include/vlc_es.h
+1
-1
modules/codec/dts.c
modules/codec/dts.c
+10
-6
No files found.
include/vlc_es.h
View file @
9aa09bba
...
...
@@ -163,7 +163,7 @@ struct es_format_t
video_format_t
video
;
subs_format_t
subs
;
int
i_bitrate
;
unsigned
int
i_bitrate
;
vlc_bool_t
b_packetized
;
/* wether the data is packetized
(ie. not truncated) */
...
...
modules/codec/dts.c
View file @
9aa09bba
/*****************************************************************************
* 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$
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
...
@@ -54,8 +54,12 @@ struct decoder_sys_t
mtime_t
i_pts
;
int
i_frame_size
,
i_bit_rate
;
unsigned
int
i_frame_length
,
i_rate
,
i_channels
,
i_channels_conf
;
unsigned
int
i_bit_rate
;
unsigned
int
i_frame_size
;
unsigned
int
i_frame_length
;
unsigned
int
i_rate
;
unsigned
int
i_channels
;
unsigned
int
i_channels_conf
;
};
enum
{
...
...
@@ -78,7 +82,7 @@ static void *DecodeBlock ( decoder_t *, block_t ** );
static
inline
int
SyncCode
(
const
uint8_t
*
);
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
aout_buffer_t
*
GetAoutBuffer
(
decoder_t
*
);
...
...
@@ -425,7 +429,7 @@ static const unsigned int ppi_dts_bitrate[] =
static
int
SyncInfo16be
(
const
uint8_t
*
p_buf
,
unsigned
int
*
pi_audio_mode
,
unsigned
int
*
pi_sample_rate
,
int
*
pi_bit_rate
,
unsigned
int
*
pi_bit_rate
,
unsigned
int
*
pi_frame_length
)
{
unsigned
int
i_frame_size
;
...
...
@@ -537,7 +541,7 @@ static int SyncInfo( const uint8_t *p_buf,
unsigned
int
*
pi_channels
,
unsigned
int
*
pi_channels_conf
,
unsigned
int
*
pi_sample_rate
,
int
*
pi_bit_rate
,
unsigned
int
*
pi_bit_rate
,
unsigned
int
*
pi_frame_length
)
{
unsigned
int
i_audio_mode
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment