Remove hardcoded maximum frame rate limit from the framework
bug 1993400
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user