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
f8afff69
Commit
f8afff69
authored
Nov 29, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVI: fix sign warning for DV Audio
parent
b28e3b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+2
-2
No files found.
modules/demux/avi/avi.c
View file @
f8afff69
...
@@ -2559,7 +2559,7 @@ static void AVI_MetaLoad( demux_t *p_demux,
...
@@ -2559,7 +2559,7 @@ static void AVI_MetaLoad( demux_t *p_demux,
static
void
AVI_DvHandleAudio
(
demux_t
*
p_demux
,
avi_track_t
*
tk
,
block_t
*
p_frame
)
static
void
AVI_DvHandleAudio
(
demux_t
*
p_demux
,
avi_track_t
*
tk
,
block_t
*
p_frame
)
{
{
size_t
i_offset
=
80
*
6
+
80
*
16
*
3
+
3
;
size_t
i_offset
=
80
*
6
+
80
*
16
*
3
+
3
;
if
(
p_frame
->
i_buffer
<
i_offset
+
5
)
if
(
p_frame
->
i_buffer
<
i_offset
+
5
)
return
;
return
;
...
@@ -2569,7 +2569,7 @@ static void AVI_DvHandleAudio( demux_t *p_demux, avi_track_t *tk, block_t *p_fra
...
@@ -2569,7 +2569,7 @@ static void AVI_DvHandleAudio( demux_t *p_demux, avi_track_t *tk, block_t *p_fra
es_format_t
fmt
;
es_format_t
fmt
;
dv_get_audio_format
(
&
fmt
,
&
p_frame
->
p_buffer
[
i_offset
+
1
]
);
dv_get_audio_format
(
&
fmt
,
&
p_frame
->
p_buffer
[
i_offset
+
1
]
);
if
(
tk
->
p_es_dv_audio
&&
tk
->
i_dv_audio_rate
!=
fmt
.
audio
.
i_rate
)
if
(
tk
->
p_es_dv_audio
&&
tk
->
i_dv_audio_rate
!=
(
int
)
fmt
.
audio
.
i_rate
)
{
{
es_out_Del
(
p_demux
->
out
,
tk
->
p_es_dv_audio
);
es_out_Del
(
p_demux
->
out
,
tk
->
p_es_dv_audio
);
tk
->
p_es_dv_audio
=
es_out_Add
(
p_demux
->
out
,
&
fmt
);
tk
->
p_es_dv_audio
=
es_out_Add
(
p_demux
->
out
,
&
fmt
);
...
...
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