Fixed ffmpeg buffer initialization buf