// 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);
}
header == asset.header &&
dither == asset.dither &&
!strcmp(acodec, asset.acodec));
- if( result && format == FILE_FFMPEG )
- result = !strcmp(ff_audio_options, asset.ff_audio_options) &&
- !strcmp(ff_sample_format, asset.ff_sample_format) &&
- ff_audio_bitrate == asset.ff_audio_bitrate &&
- ff_audio_quality == asset.ff_audio_quality;
}
!strcmp(vcodec, asset.vcodec) &&
mov_sphere == asset.mov_sphere &&
jpeg_sphere == asset.jpeg_sphere);
- if( result && format == FILE_FFMPEG )
- result = !strcmp(ff_video_options, asset.ff_video_options) &&
- !strcmp(ff_pixel_format, asset.ff_pixel_format) &&
- ff_video_bitrate == asset.ff_video_bitrate &&
- ff_video_quality == asset.ff_video_quality &&
- ff_color_space == asset.ff_color_space &&
- ff_color_range == asset.ff_color_range;
}
return result;
vmpeg_preset = GET_DEFAULT("VMPEG_PRESET", vmpeg_preset);
vmpeg_field_order = GET_DEFAULT("VMPEG_FIELD_ORDER", vmpeg_field_order);
- theora_fix_bitrate = GET_DEFAULT("THEORA_FIX_BITRATE", theora_fix_bitrate);
- theora_bitrate = GET_DEFAULT("THEORA_BITRATE", theora_bitrate);
- theora_quality = GET_DEFAULT("THEORA_QUALITY", theora_quality);
- theora_sharpness = GET_DEFAULT("THEORA_SHARPNESS", theora_sharpness);
- theora_keyframe_frequency = GET_DEFAULT("THEORA_KEYFRAME_FREQUENCY", theora_keyframe_frequency);
- theora_keyframe_force_frequency = GET_DEFAULT("THEORA_FORCE_KEYFRAME_FEQUENCY", theora_keyframe_force_frequency);
-
ac3_bitrate = GET_DEFAULT("AC3_BITRATE", ac3_bitrate);