[vlc-devel] [VLC-3.0 2/2] aom: don't pass the private structure pointer, just the index

Rémi Denis-Courmont remi at remlab.net
Mon Apr 6 12:16:15 CEST 2020


Le maanantaina 6. huhtikuuta 2020, 13.05.46 EEST Hugo Beauzée-Luyssen a écrit 
:
> From: Steve Lhomme <robux4 at ycbcr.xyz>
> 
> We can never get a NULL pointer from libaom this way. The PTS may be wrong
> but it won't crash.

AFAIK storing an arbitrary integer in a pointer is not portable. Been there 
done that. It's (only) the other way around that is portable.

-- 
Rémi Denis-Courmont
Ville neuve de Tapiola, République d´Uusimaa





More information about the vlc-devel mailing list