[mythtv-commits] Ticket #10263: [PATCH] mythtranscode: Avoid a floating point exception

MythTV noreply at mythtv.org
Sun Jan 29 07:06:45 UTC 2012


#10263: [PATCH] mythtranscode: Avoid a floating point exception
-------------------------------------------------+-------------------------
 Reporter:  Lawrence Rust <lvr@…>                |          Owner:  beirdo
     Type:  Patch - Bug Fix                      |         Status:  closed
 Priority:  minor                                |      Milestone:  0.25
Component:  MythTV - Mythtranscode               |        Version:
 Severity:  medium                               |  0.24-fixes
 Keywords:  floating point exception             |     Resolution:  fixed
                                                 |  Ticket locked:  0
-------------------------------------------------+-------------------------
Changes (by Github):

 * status:  assigned => closed
 * resolution:   => fixed
 * milestone:  unknown => 0.25


Comment:

 mythtranscode: Avoid a floating point exception

 Closes #10263

 When mythtranscode is run with a non default profile it can
 throw a flating 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.

 Signed-off-by: Lawrence Rust <lvr at softsystem.co.uk>
 Signed-off-by: Gavin Hurlbut <ghurlbut at mythtv.org>
  Branch:    master
  Changeset: 50b459419b1c79f311c2b7f56ba0fd64f8562ec8

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10263#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list