diff options
author | Martin Storsjö <martin@martin.st> | 2013-09-22 14:44:17 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-09-22 21:02:52 +0300 |
commit | f2b00a5372bfa1d82a8ab99cb8eafac8a9473494 (patch) | |
tree | 013625c146b3ba18efe580d42784e05e911651d0 /libavformat | |
parent | 23d6ba2c44540eb39c6880e4cbd527d297d264a9 (diff) | |
download | ffmpeg-streaming-f2b00a5372bfa1d82a8ab99cb8eafac8a9473494.zip ffmpeg-streaming-f2b00a5372bfa1d82a8ab99cb8eafac8a9473494.tar.gz |
movenc: Return a proper error code for invalid combinations
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index f4bd990..1fe850b 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -3179,7 +3179,7 @@ static int mov_write_header(AVFormatContext *s) if (!s->pb->seekable && (!(mov->flags & FF_MOV_FLAG_FRAGMENT) || mov->ism_lookahead)) { av_log(s, AV_LOG_ERROR, "muxer does not support non seekable output\n"); - return -1; + return AVERROR(EINVAL); } @@ -3187,7 +3187,7 @@ static int mov_write_header(AVFormatContext *s) if (mov->mode == MODE_PSP) { if (s->nb_streams != 2) { av_log(s, AV_LOG_ERROR, "PSP mode need one video and one audio stream\n"); - return -1; + return AVERROR(EINVAL); } mov_write_uuidprof_tag(pb, s); } |