print and return error if output is non seekable
Originally committed as revision 9087 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
86c33b29d2
commit
4f60f34a89
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user