avcodec/libx264: silence -Waddress
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 7 Oct 2015 02:48:13 +0000 (22:48 -0400)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 7 Oct 2015 12:55:18 +0000 (08:55 -0400)
commitb3b6665c605328174ef014ae42719d7ab462d0a2
treec6f536df481cadebc970f1d43968174b30622f13
parent2d8ef1b6902dcf9e8afe9a4d6c5c459c6b5b705c
avcodec/libx264: silence -Waddress

This patch moves the pointer validity check outside the macro,
and silences the -Waddress observed with GCC 5.2.

Note that this changes the error message slightly, from:
"bad option..." to "Error parsing option...".

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/libx264.c