[FFmpeg-devel] [PATCH] dvbsubdec: Avoid potential use of uninitialized memory

Joakim Plate elupus at ecce.se
Mon Sep 12 23:17:35 CEST 2011


On Mon, 12 Sep 2011 21:32:32 +0200, Clément Bœsch wrote:

> On Mon, Sep 12, 2011 at 09:13:47PM +0200, Joakim Plate wrote:
>> [18 quoted lines suppressed]
> 
> Mmh it seems I forgot to apply that patch when I proposed it a while ago.
> IIRC, only colormap is concerned about the uninitialized values. Also,
> Michael pointed out the zeros might not be a good fallback values…

Seems alpha is too, it passed into guess_palette

What about the other idea. Move it to context instead. That way we remember
the values for all following frames should some part not contain these
fields.

/Joakim



More information about the ffmpeg-devel mailing list