Commit b760ffdd authored by Martin Storsjö's avatar Martin Storsjö

aviobuf: Remove a senseless ifdef in avio_seek

This seemed to assume that one never used writing avio unless
muxers or networking was enabled.

This ifdef is a remnant since 8fa641f8.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent b93e934a
...@@ -215,12 +215,10 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence) ...@@ -215,12 +215,10 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
} else { } else {
int64_t res; int64_t res;
#if CONFIG_MUXERS || CONFIG_NETWORK
if (s->write_flag) { if (s->write_flag) {
flush_buffer(s); flush_buffer(s);
s->must_flush = 1; s->must_flush = 1;
} }
#endif /* CONFIG_MUXERS || CONFIG_NETWORK */
if (!s->seek) if (!s->seek)
return AVERROR(EPIPE); return AVERROR(EPIPE);
if ((res = s->seek(s->opaque, offset, SEEK_SET)) < 0) if ((res = s->seek(s->opaque, offset, SEEK_SET)) < 0)
......
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