diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-05-21 08:33:36 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-05-21 08:33:36 +0000 |
commit | 4f60f34a899e59af51f3d0c54f34de6b65f374e8 (patch) | |
tree | e5f20b992d27de3c6fdc2fc9b88a5f5d6aeb6aaf /libavformat/movenc.c | |
parent | 86c33b29d2079583d6805887c6519825151f1b0c (diff) | |
download | ffmpeg-4f60f34a899e59af51f3d0c54f34de6b65f374e8.tar.gz |
print and return error if output is non seekable
Originally committed as revision 9087 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 818e57b022..6cde293c90 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1445,6 +1445,11 @@ static int mov_write_header(AVFormatContext *s) 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; |