You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf/mux: improve feedback in case of no streams in muxer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user