summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-07 20:52:24 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-18 05:59:32 +0100
commitea81c23c942088bf7099f176ac3cd0b993b64779 (patch)
treef0d7d6103bed07beccc068647d2b72a419f915a9 /libavformat
parent96fe44e2e8e4c77e66cbb0834d340719741e964c (diff)
avformat/mxfenc: Remove redundant check
None of the muxers here has the AVFMT_NOSTREAMS flag set, so it is checked generically that there are streams. Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mxfenc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index c36ebef932..d84cb6dd29 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -2507,9 +2507,6 @@ static int mxf_write_header(AVFormatContext *s)
uint8_t present[FF_ARRAY_ELEMS(mxf_essence_container_uls)] = {0};
int64_t timestamp = 0;
- if (!s->nb_streams)
- return -1;
-
if (s->oformat == &ff_mxf_opatom_muxer && s->nb_streams !=1) {
av_log(s, AV_LOG_ERROR, "there must be exactly one stream for mxf opatom\n");
return -1;