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>
This commit is contained in:
parent
96fe44e2e8
commit
ea81c23c94
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user