Commit 4da32911 authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: check InputStream::KnownSize()

parent 52edabf2
...@@ -135,6 +135,9 @@ mpd_ffmpeg_stream_seek(void *opaque, int64_t pos, int whence) ...@@ -135,6 +135,9 @@ mpd_ffmpeg_stream_seek(void *opaque, int64_t pos, int whence)
break; break;
case AVSEEK_SIZE: case AVSEEK_SIZE:
if (!stream->input.KnownSize())
return -1;
return stream->input.GetSize(); return stream->input.GetSize();
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment