X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=libhb%2Fdvd.c;h=c21a245891f85f675c8d0b22e0daa031b41f22c2;hb=533776bbad20db93fe964bc69975f108b2a30888;hp=8e6c1feaedd2558da3f4ac6c4f29eb00dce732b5;hpb=be0132f502dbd716d2ba4766aedd3b96fd6e60d2;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/libhb/dvd.c b/libhb/dvd.c index 8e6c1fea..c21a2458 100644 --- a/libhb/dvd.c +++ b/libhb/dvd.c @@ -1,7 +1,7 @@ /* $Id: dvd.c,v 1.12 2005/11/25 15:05:25 titer Exp $ This file is part of the HandBrake source code. - Homepage: . + Homepage: . It may be used under the terms of the GNU General Public License. */ #include "hb.h" @@ -83,7 +83,10 @@ hb_dvd_t * hb_dvd_init( char * path ) /* Open device */ if( !( d->reader = DVDOpen( path ) ) ) { - hb_error( "dvd: DVDOpen failed (%s)", path ); + /* + * Not an error, may be a stream - which we'll try in a moment. + */ + hb_log( "dvd: not a dvd - trying as a stream/file instead" ); goto fail; } @@ -485,17 +488,17 @@ hb_title_t * hb_dvd_title_scan( hb_dvd_t * d, int t ) switch( vts->vtsi_mat->vts_video_attr.display_aspect_ratio ) { case 0: - title->aspect = HB_ASPECT_BASE * 4 / 3; + title->container_aspect = 4. / 3.; break; case 3: - title->aspect = HB_ASPECT_BASE * 16 / 9; + title->container_aspect = 16. / 9.; break; default: hb_log( "scan: unknown aspect" ); goto fail; } - hb_log( "scan: aspect = %d", title->aspect ); + hb_log( "scan: aspect = %g", title->aspect ); /* This title is ok so far */ goto cleanup;