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
bd795dd2
Commit
bd795dd2
authored
Dec 11, 2015
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
Dec 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg-ts: check stream_Seek() result
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
53a832b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/demux/mpeg/ts.c
modules/demux/mpeg/ts.c
+4
-2
No files found.
modules/demux/mpeg/ts.c
View file @
bd795dd2
...
@@ -2977,7 +2977,8 @@ static int ProbeStart( demux_t *p_demux, int i_program )
...
@@ -2977,7 +2977,8 @@ static int ProbeStart( demux_t *p_demux, int i_program )
i_probe_count
+=
PROBE_CHUNK_COUNT
;
i_probe_count
+=
PROBE_CHUNK_COUNT
;
}
while
(
i_pos
>
0
&&
(
i_pcr
==
-
1
||
!
b_found
)
&&
i_probe_count
<
(
2
*
PROBE_CHUNK_COUNT
)
);
}
while
(
i_pos
>
0
&&
(
i_pcr
==
-
1
||
!
b_found
)
&&
i_probe_count
<
(
2
*
PROBE_CHUNK_COUNT
)
);
stream_Seek
(
p_sys
->
stream
,
i_initial_pos
);
if
(
stream_Seek
(
p_sys
->
stream
,
i_initial_pos
)
)
return
VLC_EGENERIC
;
return
(
b_found
)
?
VLC_SUCCESS
:
VLC_EGENERIC
;
return
(
b_found
)
?
VLC_SUCCESS
:
VLC_EGENERIC
;
}
}
...
@@ -3007,7 +3008,8 @@ static int ProbeEnd( demux_t *p_demux, int i_program )
...
@@ -3007,7 +3008,8 @@ static int ProbeEnd( demux_t *p_demux, int i_program )
i_probe_count
+=
PROBE_CHUNK_COUNT
;
i_probe_count
+=
PROBE_CHUNK_COUNT
;
}
while
(
i_pos
>
0
&&
(
i_pcr
==
-
1
||
!
b_found
)
&&
i_probe_count
<
(
6
*
PROBE_CHUNK_COUNT
)
);
}
while
(
i_pos
>
0
&&
(
i_pcr
==
-
1
||
!
b_found
)
&&
i_probe_count
<
(
6
*
PROBE_CHUNK_COUNT
)
);
stream_Seek
(
p_sys
->
stream
,
i_initial_pos
);
if
(
stream_Seek
(
p_sys
->
stream
,
i_initial_pos
)
)
return
VLC_EGENERIC
;
return
(
b_found
)
?
VLC_SUCCESS
:
VLC_EGENERIC
;
return
(
b_found
)
?
VLC_SUCCESS
:
VLC_EGENERIC
;
}
}
...
...
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