Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
GSoC
GSoC2018
macOS
vlc
Commits
5a3410ab
Commit
5a3410ab
authored
Jan 11, 2016
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avi: use VLC_DEMUX_
parent
6beabe2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+12
-12
No files found.
modules/demux/avi/avi.c
View file @
5a3410ab
...
...
@@ -1007,11 +1007,11 @@ static int Demux_Seekable( demux_t *p_demux )
if
(
i_length
>
0
)
{
if
(
p_sys
->
i_time
>=
i_length
)
return
0
;
return
1
;
return
VLC_DEMUXER_EOF
;
return
VLC_DEMUXER_SUCCESS
;
}
msg_Warn
(
p_demux
,
"no track selected, exiting..."
);
return
0
;
return
VLC_DEMUXER_EOF
;
}
/* wait for the good time */
...
...
@@ -1089,10 +1089,10 @@ static int Demux_Seekable( demux_t *p_demux )
for
(
i
=
0
;
i
<
p_sys
->
i_track
;
i
++
)
{
if
(
toread
[
i
].
b_ok
)
return
1
;
return
VLC_DEMUXER_SUCCESS
;
}
msg_Warn
(
p_demux
,
"all tracks have failed, exiting..."
);
return
0
;
return
VLC_DEMUXER_EOF
;
}
if
(
i_pos
==
-
1
)
...
...
@@ -1354,7 +1354,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
else
{
msg_Warn
(
p_demux
,
"no more stream selected"
);
return
(
0
)
;
return
VLC_DEMUXER_EOF
;
}
}
...
...
@@ -1368,7 +1368,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
if
(
AVI_PacketGetHeader
(
p_demux
,
&
avi_pk
)
)
{
return
(
0
)
;
return
VLC_DEMUXER_EOF
;
}
if
(
avi_pk
.
i_stream
>=
p_sys
->
i_track
||
...
...
@@ -1389,14 +1389,14 @@ static int Demux_UnSeekable( demux_t *p_demux )
{
return
(
!
AVI_PacketNext
(
p_demux
)
?
1
:
0
);
}
return
(
0
);
/* eof */
return
VLC_DEMUXER_EOF
;
default:
msg_Warn
(
p_demux
,
"seems to have lost position @%ld, resync"
,
stream_Tell
(
p_demux
->
s
)
);
if
(
AVI_PacketSearch
(
p_demux
)
)
{
msg_Err
(
p_demux
,
"resync failed"
);
return
(
-
1
)
;
return
VLC_DEMUXER_EGENERIC
;
}
}
}
...
...
@@ -1411,7 +1411,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
block_t
*
p_frame
=
ReadFrame
(
p_demux
,
p_stream
,
8
,
avi_pk
.
i_size
+
8
)
;
if
(
p_frame
==
NULL
)
{
return
(
-
1
)
;
return
VLC_DEMUXER_EGENERIC
;
}
p_frame
->
i_pts
=
VLC_TS_0
+
AVI_GetPTS
(
p_stream
);
...
...
@@ -1431,7 +1431,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
{
if
(
AVI_PacketNext
(
p_demux
)
)
{
return
(
0
)
;
return
VLC_DEMUXER_EOF
;
}
}
...
...
@@ -1453,7 +1453,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
#undef p_stream
}
return
(
1
)
;
return
VLC_DEMUXER_SUCCESS
;
}
/*****************************************************************************
...
...
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