ffplay: Fix realloc_texture when input texture is NULL.
authorMatt Oliver <protogonoi@gmail.com>
Tue, 10 Apr 2018 13:01:18 +0000 (23:01 +1000)
committerMatt Oliver <protogonoi@gmail.com>
Wed, 18 Apr 2018 08:57:07 +0000 (18:57 +1000)
commit6be690685a8876a61f87b2b8bf30547e09030a96
treec098b8eb4b75c4da3efcfe359bd20286a4927ded
parent223f3dff8cd874143b6d531b2c8f45ad0dc9d9f6
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: Matt Oliver <protogonoi@gmail.com>
fftools/ffplay.c