aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-19 03:54:56 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-20 10:17:37 +0100
commita7ad5d4d10ec5846fe2f96cec92dbce62ef185d8 (patch)
treee5aaeaef3349d171810d89087c58257b7b5584cc
parent7f4b8d2f5e1a780eaefff528b1dd5070c42f496f (diff)
downloadffmpeg-a7ad5d4d10ec5846fe2f96cec92dbce62ef185d8.tar.gz
avformat/iamfenc: Remove always-false check
This muxer does not have the AVFMT_NOSTREAMS flag; therefore it is checked generically that there is at least a stream. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/iamfenc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavformat/iamfenc.c b/libavformat/iamfenc.c
index ebf0c2fd67..bf4a268c95 100644
--- a/libavformat/iamfenc.c
+++ b/libavformat/iamfenc.c
@@ -48,11 +48,6 @@ static int iamf_init(AVFormatContext *s)
int nb_audio_elements = 0, nb_mix_presentations = 0;
int ret;
- if (!s->nb_streams) {
- av_log(s, AV_LOG_ERROR, "There must be at least one stream\n");
- return AVERROR(EINVAL);
- }
-
for (int i = 0; i < s->nb_streams; i++) {
if (s->streams[i]->codecpar->codec_type != AVMEDIA_TYPE_AUDIO ||
(s->streams[i]->codecpar->codec_tag != MKTAG('m','p','4','a') &&