mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
mpegts: Silence "can't seek" warning on unseekable
Do not try to seek when we already know we are not allowed to. Silences warning that always happens when streaming. Signed-off-by: Zohar Kelrich <lumimies@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
5038f9b268
commit
be9c00615b
@ -1488,7 +1488,7 @@ static int mpegts_read_header(AVFormatContext *s,
|
|||||||
/* normal demux */
|
/* normal demux */
|
||||||
|
|
||||||
/* first do a scaning to get all the services */
|
/* first do a scaning to get all the services */
|
||||||
if (avio_seek(pb, pos, SEEK_SET) < 0)
|
if (pb->seekable && avio_seek(pb, pos, SEEK_SET) < 0)
|
||||||
av_log(s, AV_LOG_ERROR, "Unable to seek back to the start\n");
|
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);
|
mpegts_open_section_filter(ts, SDT_PID, sdt_cb, ts, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user