aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-10-17 23:00:54 +0300
committerMartin Storsjö <martin@martin.st>2012-10-18 01:44:05 +0300
commitb760ffdd07eaabf66656f3b2215c7da1c39a60ba (patch)
treeff6056c34bb6eed0ea182ff66ddc717f05f158b0
parentb93e934aeea44f3e92f0acd960e5d10151f14379 (diff)
downloadffmpeg-b760ffdd07eaabf66656f3b2215c7da1c39a60ba.tar.gz
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: Martin Storsjö <martin@martin.st>
-rw-r--r--libavformat/aviobuf.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index da836c6fd5..15d132de29 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -215,12 +215,10 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
} else {
int64_t res;
-#if CONFIG_MUXERS || CONFIG_NETWORK
if (s->write_flag) {
flush_buffer(s);
s->must_flush = 1;
}
-#endif /* CONFIG_MUXERS || CONFIG_NETWORK */
if (!s->seek)
return AVERROR(EPIPE);
if ((res = s->seek(s->opaque, offset, SEEK_SET)) < 0)