Commit f44cd327 authored by bcoudurier's avatar bcoudurier

print and return error if output is non seekable

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9087 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 36d342d0
...@@ -1445,6 +1445,11 @@ static int mov_write_header(AVFormatContext *s) ...@@ -1445,6 +1445,11 @@ static int mov_write_header(AVFormatContext *s)
MOVContext *mov = s->priv_data; MOVContext *mov = s->priv_data;
int i; 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 */ /* Default mode == MP4 */
mov->mode = MODE_MP4; mov->mode = MODE_MP4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment