diff options
author | jstebbins <jstebbins.hb@gmail.com> | 2014-12-16 16:50:50 +0000 |
---|---|---|
committer | jstebbins <jstebbins.hb@gmail.com> | 2014-12-16 16:50:50 +0000 |
commit | f56efd7b52c89da8cac55b4d4a187f2c87fdfee6 (patch) | |
tree | 24eacb856704fa8e4b8b8f0edc76568916f70255 /libhb/enctheora.c | |
parent | d0a975e42dcab93e1d2eead350fb1ba3951d977c (diff) |
json: add json APIs
There are several changes to job and title structs that break
current windows interop code. The interop code should be changed
such that it only uses json APIs. So if there is any missing
features (or bugs) in these APIs, please let me know.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6602 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/enctheora.c')
-rw-r--r-- | libhb/enctheora.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/libhb/enctheora.c b/libhb/enctheora.c index bc4d61d25..7737cb884 100644 --- a/libhb/enctheora.c +++ b/libhb/enctheora.c @@ -74,23 +74,16 @@ int enctheoraInit( hb_work_object_t * w, hb_job_t * job ) if( job->pass == 2 ) { hb_interjob_t * interjob = hb_interjob_get( job->h ); - ti.fps_numerator = interjob->vrate; - ti.fps_denominator = interjob->vrate_base; + ti.fps_numerator = interjob->vrate.num; + ti.fps_denominator = interjob->vrate.den; } else { - ti.fps_numerator = job->vrate; - ti.fps_denominator = job->vrate_base; - } - if( job->anamorphic.mode ) - { - ti.aspect_numerator = job->anamorphic.par_width; - ti.aspect_denominator = job->anamorphic.par_height; - } - else - { - ti.aspect_numerator = ti.aspect_denominator = 1; + ti.fps_numerator = job->vrate.num; + ti.fps_denominator = job->vrate.den; } + ti.aspect_numerator = job->par.num; + ti.aspect_denominator = job->par.den; ti.colorspace = TH_CS_UNSPECIFIED; ti.pixel_fmt = TH_PF_420; if (job->vquality < 0.0) @@ -104,7 +97,7 @@ int enctheoraInit( hb_work_object_t * w, hb_job_t * job ) ti.quality = job->vquality; } - keyframe_frequency = 10 * (int)( (double)job->vrate / (double)job->vrate_base + 0.5 ); + keyframe_frequency = 10 * ((double)job->vrate.num / job->vrate.den + 0.5); hb_log("theora: keyint: %i", keyframe_frequency); |