mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavf/mux: improve feedback in case of no streams in muxer
This commit is contained in:
parent
4511531582
commit
d37d4b6e40
@ -237,7 +237,7 @@ static int init_muxer(AVFormatContext *s, AVDictionary **options)
|
||||
|
||||
// some sanity checks
|
||||
if (s->nb_streams == 0 && !(of->flags & AVFMT_NOSTREAMS)) {
|
||||
av_log(s, AV_LOG_ERROR, "no streams\n");
|
||||
av_log(s, AV_LOG_ERROR, "No streams to mux were specified\n");
|
||||
ret = AVERROR(EINVAL);
|
||||
goto fail;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user