Skip to content

Commit

Permalink
DVD: Fix crash when displaying dvd menu button.
Browse files Browse the repository at this point in the history
Fixes #9677
  • Loading branch information
Mark Kendall committed Jun 24, 2011
1 parent 341f80d commit d172a81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mythtv/libs/libmythtv/subtitlescreen.cpp
Expand Up @@ -536,9 +536,9 @@ void SubtitleScreen::DisplayDVDButton(AVSubtitle* dvdButton, QRect &buttonPos)
QImage bg_image(hl_button->pict.data[0], w, h, w, QImage::Format_Indexed8);
uint32_t *bgpalette = (uint32_t *)(hl_button->pict.data[1]);

QVector<unsigned int> bg_palette;
for (int i = 0; i < AVPALETTE_COUNT; i++)
bg_palette.push_back(bgpalette[i]);
QVector<unsigned int> bg_palette(16);
for (int i = 0; i < 16; i++)
bg_palette.append(bgpalette[i]);
bg_image.setColorTable(bg_palette);

// copy button region of background image
Expand Down

0 comments on commit d172a81

Please sign in to comment.