[vlc-devel] [PATCH 1/3] lib: Add libvlc_picture API

Rémi Denis-Courmont remi at remlab.net
Mon Oct 8 17:45:08 CEST 2018


Le perjantaina 5. lokakuuta 2018, 17.37.54 EEST Hugo Beauzée-Luyssen a écrit :
> +/**
> + * Saves this picture to a file. The image format is the same as the one
> + * returned by \link libvlc_picture_type \endlink
> + *
> + * \param p_pic A picture object
> + * \param psz_path The path to the generated file
> + * \return 0 in case of success, -1 otherwise
> + */
> +LIBVLC_API int
> +libvlc_picture_save( const libvlc_picture_t* p_pic, const char* psz_path );

How do you handle the security and functional implications here? I would 
rather move the problem to the application and have LibVLC write to an already 
open file handle, frankly.

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list