libavsmash: Fix implicit declaration of function 'av_realloc' for libav.