media-io: Fix check before passing pointer to av_freep

Found by clang-3.7 (trunk 236075) via -Wpointer-bool-conversion:

warning: address of array 'rs->output_buffer' will always evaluate
to 'true'
This commit is contained in:
Palana 2015-05-11 20:29:32 +02:00
parent 83df87c552
commit 4daa5c7aa7

View File

@ -121,7 +121,7 @@ void audio_resampler_destroy(audio_resampler_t *rs)
if (rs) {
if (rs->context)
swr_free(&rs->context);
if (rs->output_buffer)
if (rs->output_buffer[0])
av_freep(&rs->output_buffer[0]);
bfree(rs);