X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fenctheora.c;h=29dfed1b57b0706be5653160f39ed8a53f900d96;hb=69bcedab6772552b36bc8f1591db6ea0c8de08c3;hp=bcc27eb4dd457665c88008e48e35461ea84e3505;hpb=9a8fda3903e0ef57a79fd45efc70b7d88c7ba820;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/enctheora.c b/libhb/enctheora.c index bcc27eb4..29dfed1b 100644 --- a/libhb/enctheora.c +++ b/libhb/enctheora.c @@ -42,10 +42,10 @@ int enctheoraInit( hb_work_object_t * w, hb_job_t * job ) ti.offset_x = ti.offset_y = 0; ti.fps_numerator = job->vrate; ti.fps_denominator = job->vrate_base; - if (job->pixel_ratio) + if( job->anamorphic.mode ) { - ti.aspect_numerator = job->pixel_aspect_width; - ti.aspect_denominator = job->pixel_aspect_height; + ti.aspect_numerator = job->anamorphic.par_width; + ti.aspect_denominator = job->anamorphic.par_height; } else { @@ -63,7 +63,7 @@ int enctheoraInit( hb_work_object_t * w, hb_job_t * job ) ti.keyframe_mindistance = 8; ti.noise_sensitivity = 1; ti.sharpness = 0; - if (job->vquality < 0.0 || job->vquality > 1.0) + if (job->vquality < 0.0) { ti.target_bitrate = job->vbitrate * 1000; ti.keyframe_data_target_bitrate = job->vbitrate * 1000 * 1.5; @@ -72,7 +72,15 @@ int enctheoraInit( hb_work_object_t * w, hb_job_t * job ) else { ti.target_bitrate = 0; - ti.quality = 63 * job->vquality; + + if( job->vquality > 0 && job->vquality < 1 ) + { + ti.quality = 63 * job->vquality; + } + else + { + ti.quality = job->vquality; + } } theora_encode_init( &pv->theora, &ti );