Commit f8d9a65d authored by cehoyos's avatar cehoyos

Always allocate a buffer of AVPALETTE_SIZE for palette in the

Bluray subtitle decoder instead of as small as possible.
This avoids completely unnecessary issues with e.g. libswscale.
(See r19673)

Patch by Stephen Backway, stev391 A exemail D com D au


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19714 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 96ae7ce6
......@@ -367,7 +367,7 @@ static int display_end_segment(AVCodecContext *avctx, void *data,
/* Allocate memory for colors */
sub->rects[0]->nb_colors = 256;
sub->rects[0]->pict.data[1] = av_malloc(sub->rects[0]->nb_colors * sizeof(uint32_t));
sub->rects[0]->pict.data[1] = av_mallocz(AVPALETTE_SIZE);
memcpy(sub->rects[0]->pict.data[1], ctx->clut, sub->rects[0]->nb_colors * sizeof(uint32_t));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment