changeset 2091:659c9e8f558c libavformat

print and return error if output is non seekable
author bcoudurier
date Mon, 21 May 2007 08:33:36 +0000
parents 34440139b3a7
children 995baffaa001
files movenc.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Sun May 20 15:11:55 2007 +0000
+++ b/movenc.c	Mon May 21 08:33:36 2007 +0000
@@ -1445,6 +1445,11 @@
     MOVContext *mov = s->priv_data;
     int i;
 
+    if (url_is_streamed(&s->pb)) {
+        av_log(s, AV_LOG_ERROR, "muxer does not support non seekable output\n");
+        return -1;
+    }
+
     /* Default mode == MP4 */
     mov->mode = MODE_MP4;