X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffileffmpeg.C;fp=cinelerra-5.1%2Fcinelerra%2Ffileffmpeg.C;h=99fa71193af683c2df5194f7f67911ccf2bfeea9;hb=e5d1c3ec8b49e9e4cd31f30e991f52ab11de93b1;hp=27bd7de45daa2022ec46d38c2793d32b30cfd1ce;hpb=f1fb4f6de75ebd60c9d265d9506b4e513d052f7d;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/fileffmpeg.C b/cinelerra-5.1/cinelerra/fileffmpeg.C index 27bd7de4..99fa7119 100644 --- a/cinelerra-5.1/cinelerra/fileffmpeg.C +++ b/cinelerra-5.1/cinelerra/fileffmpeg.C @@ -367,6 +367,21 @@ int FileFFMPEG::get_best_colormodel(Asset *asset, int driver) return BC_RGB888; } +int FileFFMPEG::can_render(const char *fformat, const char *type) +{ + FileSystem fs; + char option_path[BCTEXTLEN]; + FFMPEG::set_option_path(option_path, type); + fs.update(option_path); + int total_files = fs.total_files(); + for( int i=0; iget_name(); + const char *ext = strrchr(name,'.'); + if( !ext ) continue; + if( !strcmp(fformat, ++ext) ) return 1; + } + return 0; +} int FileFFMPEG::get_ff_option(const char *nm, const char *options, char *value) {