decoder/ffmpeg: check InputStream::KnownSize()

This commit is contained in:
Max Kellermann 2014-08-19 20:29:38 +02:00
parent 52edabf2cb
commit 4da3291157
1 changed files with 3 additions and 0 deletions

View File

@ -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: