﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
10263	[PATCH] mythtranscode: Avoid a floating point exception	Lawrence Rust <lvr@…>	beirdo	"When mythtranscode is run with a non default profile it can throw a floating point exception during initialisation:
{{{
Program terminated with signal 8, Arithmetic exception.

422	    if ((ydiff / display_video_rect.height()) < 0.05)
(gdb) bt
    new_display_visible_rect=..., new_aspectoverride=kAspect_Off, new_adjustfill=kAdjustFill_AutoDetect_DefaultHalf)
    at videooutwindow.cpp:484
    winh=0, codec_id=kCodec_MPEG2, embedid=0) at videooutbase.cpp:419
    winw=0, winh=0, codec_id=kCodec_MPEG2, embedid=0) at videoout_null.cpp:152
    framecontrol=false, jobID=-1, fifodir=..., fifo_info=false, deleteMap=...) at transcode.cpp:716
}}}

This is caused by display_video_rect.height() being 0.

Attached patch."	Patch - Bug Fix	closed	minor	0.24.3	MythTV - Mythtranscode	0.24-fixes	medium	fixed	floating point exception		0
