add asset max wxh and max texture tests, fix position clamp for single frame assets
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / asset.C
index 2828fe31df7a535088d45da3713a084bd22edbd0..23586a06e4031f9702ee673f5543700940c3ead6 100644 (file)
@@ -182,8 +182,8 @@ void Asset::boundaries()
 //     CLAMP(sample_rate, 1, 1000000);
 //     CLAMP(frame_rate, 0.001, 1000000);
        CLAMP(channels, 0, MAX_CHANNELS-1);
-       CLAMP(width, 0, 32767);
-       CLAMP(height, 0, 32767);
+       CLAMP(width, 0, ASSET_MAX_WIDTH);
+       CLAMP(height, 0, ASSET_MAX_HEIGHT);
 //printf("Asset::boundaries %d %d %f\n", __LINE__, sample_rate, frame_rate);
 }