• Andreas Rheinhardt's avatar
    avformat/mux: Add flag for "not more than one stream of each type" · f4167842
    Andreas Rheinhardt authored
    More exactly: Not more than one stream of each type for which
    a default codec (i.e. AVOutputFormat.(audio|video|subtitle)_codec)
    is set; for those types for which no such codec is set (or for
    which no designated default codec in AVOutputFormat exists at all)
    no streams are permitted.
    
    Given that with this flag set the default codecs become more important,
    they are now set explicitly to AV_CODEC_ID_NONE for "unset";
    the earlier code relied on AV_CODEC_ID_NONE being equal to zero,
    so that default static initialization set it accordingly;
    but this is not how one is supposed to use an enum.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    f4167842
lrcenc.c 4.62 KB