diff options
Diffstat (limited to 'libhb/common.c')
-rw-r--r-- | libhb/common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/common.c b/libhb/common.c index 5f6341790..d802f41a5 100644 --- a/libhb/common.c +++ b/libhb/common.c @@ -111,6 +111,15 @@ void hb_fix_aspect( hb_job_t * job, int keep ) hb_title_t * title = job->title; int i; + /* don't do anything unless the title has complete size info */ + if ( title->height == 0 || title->width == 0 || title->aspect == 0 ) + { + hb_log( "hb_fix_aspect: incomplete info for title %d: " + "height = %d, width = %d, aspect = %d", + title->height, title->width, title->aspect ); + return; + } + /* Sanity checks: Widths and heights must be multiples of 16 and greater than or equal to 16 |