[vlc-devel] [RFC PATCH] subpicture: YUVP subpicture formats should have a valid palette
Rémi Denis-Courmont
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.
>
> Question:
> 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.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list