avformat/mov: Check dimensions before setting aspect