summaryrefslogtreecommitdiffstats
path: root/libhb/bd.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-12-16 16:50:50 +0000
committerjstebbins <[email protected]>2014-12-16 16:50:50 +0000
commitf56efd7b52c89da8cac55b4d4a187f2c87fdfee6 (patch)
tree24eacb856704fa8e4b8b8f0edc76568916f70255 /libhb/bd.c
parentd0a975e42dcab93e1d2eead350fb1ba3951d977c (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/bd.c')
-rw-r--r--libhb/bd.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libhb/bd.c b/libhb/bd.c
index 06d4feaef..26d4b6839 100644
--- a/libhb/bd.c
+++ b/libhb/bd.c
@@ -361,16 +361,19 @@ hb_title_t * hb_bd_title_scan( hb_bd_t * d, int tt, uint64_t min_duration )
switch ( bdvideo->aspect )
{
case BLURAY_ASPECT_RATIO_4_3:
- title->container_aspect = 4. / 3.;
+ title->container_dar.num = 4;
+ title->container_dar.den = 3;
break;
case BLURAY_ASPECT_RATIO_16_9:
- title->container_aspect = 16. / 9.;
+ title->container_dar.num = 16;
+ title->container_dar.den = 9;
break;
default:
hb_log( "bd: unknown aspect" );
goto fail;
}
- hb_log( "bd: aspect = %g", title->container_aspect );
+ hb_log("bd: aspect = %d:%d",
+ title->container_dar.num, title->container_dar.den);
/* Detect audio */
// Max primary BD audios is 32