diff options
author | van <[email protected]> | 2008-08-08 06:19:54 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-08-08 06:19:54 +0000 |
commit | f8eb63aed0df0e9c99b5d652728ccb01a2d4eb68 (patch) | |
tree | 5a2a0a1e1200b8e41c78b66349001f398befc4f2 /test | |
parent | 138aa5d206ae6ee6296948367de807089f414f6a (diff) |
- change aspect from a scaled int to a double so we can handle the wider
range of aspect ratios we get from ffmpeg files.
- add container_aspect to title struct (always zero except for DVDs
when it's the aspect from the VTSI). To handle broken French DVDs,
make HB complain & use the container aspect if it's different from
the aspect computed from the video PAR.
- fix ScanFunc's job template init so that it doesn't think the only
legal aspect ratios are 16:9 & 4:3.
- hb_reduce wouldn't reduce any fraction where both terms were equal and
prime (e.g., 2/2, 3/3, 5/5, etc. would not become 1/1). Recoded it using
Euclid's Algorithm so it always works and is faster.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1616 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r-- | test/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c index fec091a93..3fd9d0e62 100644 --- a/test/test.c +++ b/test/test.c @@ -310,7 +310,7 @@ static void PrintTitleInfo( hb_title_t * title ) title->hours, title->minutes, title->seconds ); fprintf( stderr, " + size: %dx%d, aspect: %.2f, %.3f fps\n", title->width, title->height, - (float) title->aspect / HB_ASPECT_BASE, + (float) title->aspect, (float) title->rate / title->rate_base ); fprintf( stderr, " + autocrop: %d/%d/%d/%d\n", title->crop[0], title->crop[1], title->crop[2], title->crop[3] ); |