[FFmpeg-cvslog] avio: Don't set the seekable flag if no seek function is provided
Hendrik Schreiber
git at videolan.org
Sat Jul 27 09:12:40 CEST 2013
ffmpeg | branch: master | Hendrik Schreiber <hs at tagtraum.com> | Tue Jul 23 11:25:34 2013 +0200| [b512360184ade835fba621f5042d643fc9e2ee9d] | committer: Martin Storsjö
avio: Don't set the seekable flag if no seek function is provided
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b512360184ade835fba621f5042d643fc9e2ee9d
---
libavformat/aviobuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index d2eaf36..bc89768 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -90,7 +90,7 @@ int ffio_init_context(AVIOContext *s,
s->must_flush = 0;
s->eof_reached = 0;
s->error = 0;
- s->seekable = AVIO_SEEKABLE_NORMAL;
+ s->seekable = seek ? AVIO_SEEKABLE_NORMAL : 0;
s->max_packet_size = 0;
s->update_checksum = NULL;
More information about the ffmpeg-cvslog
mailing list