Remove hardcoded maximum frame rate limit from the framework

bug 1993400
This commit is contained in:
James Dong
2009-07-30 11:16:11 -07:00
parent dcfc5c2318
commit cbe7c5441c
2 changed files with 1 additions and 5 deletions

View File

@@ -93,10 +93,6 @@ enum video_encoder {
VIDEO_ENCODER_LIST_END // must be the last - used to validate the video encoder type
};
// Maximum frames per second is 24
#define MEDIA_RECORDER_MAX_FRAME_RATE 24
/*
* The state machine of the media_recorder uses a set of different state names.
* The mapping between the media_recorder and the pvauthorengine is shown below:

View File

@@ -276,7 +276,7 @@ static void
android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate)
{
LOGV("setVideoFrameRate(%d)", rate);
if (rate <= 0 || rate > MEDIA_RECORDER_MAX_FRAME_RATE) {
if (rate <= 0) {
jniThrowException(env, "java/lang/IllegalArgumentException", "invalid frame rate");
return;
}