X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fasset.C;h=23586a06e4031f9702ee673f5543700940c3ead6;hb=0fd1b583cf9d14672c35f7369ba88388413be4f7;hp=fab58403d7c54cfaefccc06232ffcf45d9f97589;hpb=c9c0e07706fad701a70ee0d1ffb0fcb6304f138c;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/asset.C b/cinelerra-5.1/cinelerra/asset.C index fab58403..23586a06 100644 --- a/cinelerra-5.1/cinelerra/asset.C +++ b/cinelerra-5.1/cinelerra/asset.C @@ -181,9 +181,9 @@ void Asset::boundaries() // sample_rate & frame_rate are user defined // CLAMP(sample_rate, 1, 1000000); // CLAMP(frame_rate, 0.001, 1000000); - CLAMP(channels, 0, 16); - CLAMP(width, 0, 10000); - CLAMP(height, 0, 10000); + CLAMP(channels, 0, MAX_CHANNELS-1); + CLAMP(width, 0, ASSET_MAX_WIDTH); + CLAMP(height, 0, ASSET_MAX_HEIGHT); //printf("Asset::boundaries %d %d %f\n", __LINE__, sample_rate, frame_rate); }