X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=generate_dvd.cpp;h=d5185c2702e6fa88926800ac62c03429d6df6f86;hb=5a15c27d8333ea167ffd41aa6017bcb7a10b1be8;hp=1d43a9aba9e9527c1dce6ba1a0a23fd8238b4850;hpb=7c0ec4cf5e77d68a7e2313c40e2038ff0cdcbe69;p=videolink.git diff --git a/generate_dvd.cpp b/generate_dvd.cpp index 1d43a9a..d5185c2 100644 --- a/generate_dvd.cpp +++ b/generate_dvd.cpp @@ -376,8 +376,9 @@ void dvd_generator::generate(const std::string & output_dir) const const unsigned menu_begin = titleset_num * dvdauthor_anonymous_menus_max; const unsigned menu_end = have_real_menus - ? std::min((titleset_num + 1) * dvdauthor_anonymous_menus_max, - menus_.size()) + ? std::min( + (titleset_num + 1) * dvdauthor_anonymous_menus_max, + menus_.size()) : menu_begin + 1; for (unsigned menu_index = menu_begin;