avformat/svag: fix division by zero