fix ffmpeg.c and use N_ELEMENTS