Skip to content
Snippets Groups Projects
Commit 6be69068 authored by Matt Oliver's avatar Matt Oliver
Browse files

ffplay: Fix realloc_texture when input texture is NULL.


SDL_QueryTexture and SDL_DestroyTexture require that the input texture
pointer be non-null. Debug builds of SDL will correctly check for this
and break program execution. This patch fixes this by checking the
status of the texture pointer.

Signed-off-by: default avatarMatt Oliver <protogonoi@gmail.com>
parent 223f3dff
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment