[vlc-devel] [RFC PATCH] subpicture: YUVP subpicture formats should have a valid palette
remi at remlab.net
Tue May 3 13:43:49 CEST 2016
Le 2016-05-03 11:58, Thomas Guillem a écrit :
> And return NULL if the palette allocation fails since most callers
> will assume
> that palette will be valid.
> Maybe the palette allocation should be done in video_format_Setup
> when color is YUVP, no ?
Adding error handling there would be a disaster at best. I think we
should stop pretending that palettized formats are raw, and instead
decode them to actual linear bitmap.
More information about the vlc-devel