[Libav-user] blit swscale to texture

Alex Cohn alexcohn at netvision.net.il
Mon Mar 19 15:27:36 CET 2012

On Mon, Mar 19, 2012 at 15:50, David martin <vilanew at gmail.com> wrote:
> Ok thanks i will give it a try.
> Should i update the texture through the SDL_updatetexture function or just
> through a pointer to the texture ?

You should use LockTexture()/UnlockTexture() (see
http://wiki.libsdl.org/moin.cgi/SDL_LockTexture). Note that the
texture should be created with flag SDL_TEXTUREACCESS_STREAMING


More information about the Libav-user mailing list