summaryrefslogtreecommitdiff
path: root/libavformat/soxenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/soxenc.c')
-rw-r--r--libavformat/soxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c
index 214acdd59b..c93869c691 100644
--- a/libavformat/soxenc.c
+++ b/libavformat/soxenc.c
@@ -96,7 +96,7 @@ static int sox_write_trailer(AVFormatContext *s)
AVIOContext *pb = s->pb;
AVCodecContext *enc = s->streams[0]->codec;
- if (!url_is_streamed(s->pb)) {
+ if (s->pb->seekable) {
/* update number of samples */
int64_t file_size = avio_tell(pb);
int64_t num_samples = (file_size - sox->header_size - 4LL) >> 2LL;