ffmpeg: Fix bitrate calculation (bug #1052)