summaryrefslogtreecommitdiff
path: root/libavformat/vocdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/vocdec.c')
-rw-r--r--libavformat/vocdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c
index 48e3d10c0b..eaa2f25492 100644
--- a/libavformat/vocdec.c
+++ b/libavformat/vocdec.c
@@ -78,7 +78,7 @@ voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
return AVERROR(EIO);
voc->remaining_size = avio_rl24(pb);
if (!voc->remaining_size) {
- if (url_is_streamed(s->pb))
+ if (!s->pb->seekable)
return AVERROR(EIO);
voc->remaining_size = avio_size(pb) - avio_tell(pb);
}