Skip to content

Commit

Permalink
Change the custom aspect ratio code
Browse files Browse the repository at this point in the history
The custom aspect ratio calculations were not always making it to the db
correctly.  Too many ways of getting the aspect ratios, I guess.  Anyways, the
only thing that seems to even use this is the flowplayer in mythweb, and a
corresponding change to that code will be committed shortly.
  • Loading branch information
Beirdo committed May 27, 2011
1 parent 64d448a commit 7909253
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions mythtv/libs/libmythtv/recorderbase.cpp
Expand Up @@ -419,22 +419,20 @@ void RecorderBase::AspectChange(uint aspect, long long frame)
{
MarkTypes mark = MARK_ASPECT_4_3;
uint customAspect = 0;
if (aspect == ASPECT_1_1 && m_videoHeight)
if ((aspect == ASPECT_1_1 && m_videoHeight) || (aspect >= ASPECT_CUSTOM))
{
mark = MARK_ASPECT_CUSTOM;
customAspect = m_videoWidth * 1000000 / m_videoHeight;
if (aspect > 0x0F)
customAspect = aspect;
else
customAspect = m_videoWidth * 1000000 / m_videoHeight;
}
if (aspect == ASPECT_4_3)
mark = MARK_ASPECT_4_3;
if (aspect == ASPECT_16_9)
mark = MARK_ASPECT_16_9;
if (aspect == ASPECT_2_21_1)
mark = MARK_ASPECT_2_21_1;
if (aspect > ASPECT_CUSTOM)
{
mark = MARK_ASPECT_CUSTOM;
customAspect = aspect;
}

if (curRecording)
curRecording->SaveAspect(frame, mark, customAspect);
Expand Down

0 comments on commit 7909253

Please sign in to comment.