This code can be called with a NULL UrlContext if writing of the
trailer involves seeking.
---
libavformat/smoothstreamingenc.c |3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c
index 339a9bb..7ee640a 100644
--- a/libavformat/smoothstreamingenc.c
+++ b/libavformat/smoothstreamingenc.c
@@ -108,7 +108,8 @@ static int64_t ism_seek(void *opaque, int64_t offset, int
whence)
os->tail_out = NULL;
}
if (offset >= os->cur_start_pos) {
-ffurl_seek(os->out, offset - os->cur_start_pos, SEEK_SET);
+if (os->out)
+ffurl_seek(os->out, offset - os->cur_start_pos, SEEK_SET);
os->cur_pos = offset;
return offset;
}
--
1.7.9.4
___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel