Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
1fb30586
Commit
1fb30586
authored
Oct 10, 2011
by
Petter Ericson
Committed by
Michael Niedermayer
Oct 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: Attempt to seek back to beginning in non-seekable mpegts files.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3c8862a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mpegts.c
libavformat/mpegts.c
+4
-1
No files found.
libavformat/mpegts.c
View file @
1fb30586
...
...
@@ -1563,7 +1563,10 @@ static int mpegts_read_header(AVFormatContext *s,
/* normal demux */
/* first do a scaning to get all the services */
if
(
pb
->
seekable
&&
avio_seek
(
pb
,
pos
,
SEEK_SET
)
<
0
)
/* NOTE: We attempt to seek on non-seekable files as well, as the
* probe buffer usually is big enough. Only warn if the seek failed
* on files where the seek should work. */
if
(
avio_seek
(
pb
,
pos
,
SEEK_SET
)
<
0
)
av_log
(
s
,
AV_LOG_ERROR
,
"Unable to seek back to the start
\n
"
);
mpegts_open_section_filter
(
ts
,
SDT_PID
,
sdt_cb
,
ts
,
1
);
...
...
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